如果 strSubdir 开头"template\",但不是"template\admin\"或"template\sql\",则返回 true。 否则,返回 false。
命名空间: Microsoft.SharePoint.Utilities
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
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
类型:System.String一个字符串,包含要检查是否为新版本的本地安装目录的相对路径。例如,"Template\Features"。它不能为 null 或空字符串。