Share via


VersionControlPath.GetFolderDepth 方法 (String, Int32)

傳回層級數規格的路徑項目的最大深度決定。

$ 會傳回 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
)

參數

傳回值

類型:System.Int32

.NET Framework 安全性

請參閱

參考

VersionControlPath 類別

GetFolderDepth 多載

Microsoft.TeamFoundation.VersionControl.Common 命名空間