Share via


VersionControlPath.PrependRootIfNeeded, méthode (String, PathLength)

Méthode utilitaire pour ajouter la racine ($) à un dossier - très utile pour obtenir le dossier d'un projet d'équipe si vous avez uniquement son nom.

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

Syntaxe

'Déclaration
Public Shared Function PrependRootIfNeeded ( _
    folder As String, _
    maxPathLength As PathLength _
) As String
public static string PrependRootIfNeeded(
    string folder,
    PathLength maxPathLength
)

Paramètres

  • folder
    Type : System.String
    Le chemin d'accès au dossier qui peut ou ne pas démarrer avec le $ déjà.

Valeur de retour

Type : System.String
Le chemin d'accès au dossier en partant de la racine.

Sécurité .NET Framework

Voir aussi

Référence

VersionControlPath Classe

PrependRootIfNeeded, surcharge

Microsoft.TeamFoundation.VersionControl.Common, espace de noms