共用方式為


SPUtility.IsSetupPathVersioned method

如果 strSubdir 開始"template\",但不是"template\admin\"或"template\sql\",會傳回 true。else 就會傳回 false。

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Shared Function IsSetupPathVersioned ( _
    strSubdir As String _
) As Boolean
'用途
Dim strSubdir As String
Dim returnValue As Boolean

returnValue = SPUtility.IsSetupPathVersioned(strSubdir)
public static bool IsSetupPathVersioned(
    string strSubdir
)

參數

  • strSubdir
    Type: System.String

    內含相對於本機安裝目錄,以檢查它是否建立版本的路徑的字串。例如,"Template\Features"。它不能是 null 或空字串。

傳回值

Type: System.Boolean

請參閱

參照

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace