Share via


VersionControlPath.GetFolderDepth, méthode (String, Int32)

Retourne le nombre de niveaux d'éléments de tracé dans cette spécification jusqu'à la profondeur maximale.

le $ retourne 0 $/abc retourne 1 $/abc/xyz retourne 2, et ainsi de suite.

Espace de noms :  Microsoft.TeamFoundation.VersionControl.Common
Assembly :  Microsoft.TeamFoundation.VersionControl.Common (dans Microsoft.TeamFoundation.VersionControl.Common.dll)

Syntaxe

'Déclaration
Public Shared Function GetFolderDepth ( _
    item As String, _
    maxDepth As Integer _
) As Integer
public static int GetFolderDepth(
    string item,
    int maxDepth
)

Paramètres

Valeur de retour

Type : System.Int32

Sécurité .NET Framework

Voir aussi

Référence

VersionControlPath Classe

GetFolderDepth, surcharge

Microsoft.TeamFoundation.VersionControl.Common, espace de noms