返回 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, _
maxDepth As Integer _
) As Integer
public static int GetFolderDepth(
string item,
int maxDepth
)
参数
- item
类型:System.String
- maxDepth
类型:System.Int32
返回值
类型:System.Int32
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。