Share via


VersionControlPath.GetFolderDepth Method (String, Int32)

Returns the number of levels of path elements in this specification up to the maximum depth.

$/ will return 0 $/abc will return 1 $/abc/xyz will return 2, and so on.

Namespace:  Microsoft.TeamFoundation.VersionControl.Common
Assembly:  Microsoft.TeamFoundation.VersionControl.Common (in Microsoft.TeamFoundation.VersionControl.Common.dll)

Syntax

'Declaration
Public Shared Function GetFolderDepth ( _
    item As String, _
    maxDepth As Integer _
) As Integer
public static int GetFolderDepth(
    string item,
    int maxDepth
)
public:
static int GetFolderDepth(
    String^ item, 
    int maxDepth
)
static member GetFolderDepth : 
        item:string * 
        maxDepth:int -> int
public static function GetFolderDepth(
    item : String, 
    maxDepth : int
) : int

Parameters

Return Value

Type: System.Int32

.NET Framework Security

See Also

Reference

VersionControlPath Class

GetFolderDepth Overload

Microsoft.TeamFoundation.VersionControl.Common Namespace