SPUtility.IsSetupPathVersioned method

if strSubdir starts with "template\", but not "template\admin\" or "template\sql\", return true. else, return false.

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

Syntax

'Declaration
Public Shared Function IsSetupPathVersioned ( _
    strSubdir As String _
) As Boolean
'Usage
Dim strSubdir As String
Dim returnValue As Boolean

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

Parameters

  • strSubdir
    Type: System.String

    A string that contains a path relative to the local setup directory to check whether it's versioned. For example, "Template\Features". It cannot be null or empty string.

Return value

Type: System.Boolean

See also

Reference

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace