Partager via


Workspace.PendBranch, méthode (String, String, VersionSpec, LockLevel, Boolean)

Planifie un fichier ou dossier pour créer une branche.

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

Syntaxe

'Déclaration
Public Function PendBranch ( _
    sourcePath As String, _
    targetPath As String, _
    version As VersionSpec, _
    lockLevel As LockLevel, _
    updateDisk As Boolean _
) As Integer
public int PendBranch(
    string sourcePath,
    string targetPath,
    VersionSpec version,
    LockLevel lockLevel,
    bool updateDisk
)

Paramètres

  • sourcePath
    Type : System.String
    Le chemin d'accès de l'élément à branches.
  • targetPath
    Type : System.String
    Emplacement de la branche qui sera créée.
  • updateDisk
    Type : System.Boolean
    True pour remplir branche sur le disque local.Sinon, le disque n'est pas modifié.

Valeur de retour

Type : System.Int32
Le nombre de modifications en attente.

Notes

La création de branche pour un dossier est implicitement récursives.

Pour plus d'informations sur la manière d'utiliser cette méthode, consultez Extension du contrôle de version.

Sécurité .NET Framework

Voir aussi

Référence

Workspace Classe

PendBranch, surcharge

Microsoft.TeamFoundation.VersionControl.Client, espace de noms