VersionControlPath.GetFolderDepth 方法 (String)

返回 path 元素的级别数此规范的。

$ 将返回 0 个 $/abc 将返回 1 个 $/abc/xyz 将返回 2,等等。

命名空间:  Microsoft.TeamFoundation.VersionControl.Common
程序集:  Microsoft.TeamFoundation.VersionControl.Common(在 Microsoft.TeamFoundation.VersionControl.Common.dll 中)

语法

声明
Public Shared Function GetFolderDepth ( _
    item As String _
) As Integer
public static int GetFolderDepth(
    string item
)

参数

返回值

类型:System.Int32

.NET Framework 安全性

请参阅

参考

VersionControlPath 类

GetFolderDepth 重载

Microsoft.TeamFoundation.VersionControl.Common 命名空间