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

Planifie un fichier ou un dossier pour la création de 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, _
    detectFolderAtTarget As Boolean _
) As Integer
public int PendBranch(
    string sourcePath,
    string targetPath,
    VersionSpec version,
    LockLevel lockLevel,
    bool updateDisk,
    bool detectFolderAtTarget
)

Paramètres

  • sourcePath
    Type : System.String
    Le chemin d'accès de l'élément à la branche.
  • targetPath
    Type : System.String
    L'emplacement de la branche qui sera créé.
  • updateDisk
    Type : System.Boolean
    True pour remplir une branche sur le disque local.Sinon, le disque n'est pas modifié.
  • detectFolderAtTarget
    Type : System.Boolean
    True pour rechercher un dossier local qui existe à la cible et informent le serveur.False à ne pas trouver.

Valeur de retour

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

Notes

Passer un dossier est implicitement récursif.

Sécurité .NET Framework

Voir aussi

Référence

Workspace Classe

PendBranch, surcharge

Microsoft.TeamFoundation.VersionControl.Client, espace de noms