Freigeben über


VersionControlPath.GetFolderDepth-Methode (String, Int32)

Gibt die Anzahl der Ebenen von Pfadelementen in dieser Spezifikation bis zur maximalen Tiefe zurück.

$ gibt 0 $/abc 1 zurückgibt $/abc/xyz 2 zurückgibt, usw. zurück.

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
)

Parameter

Rückgabewert

Typ: System.Int32

.NET Framework-Sicherheit

Siehe auch

Referenz

VersionControlPath Klasse

GetFolderDepth-Überladung

Microsoft.TeamFoundation.VersionControl.Common-Namespace