VersionControlPath.GetFolderDepth 方法 (String)
傳回的層級數目。這個規格 . 的路徑項目。
$會傳回 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
)
參數
- item
型別:System.String
傳回值
型別:System.Int32
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。