Share via


VersionControlServer.CreateBranch, méthode (String, String, VersionSpec)

Crée une branche sur le serveur et la signature sans télécharger la branche au client.

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

Syntaxe

'Déclaration
Public Function CreateBranch ( _
    sourcePath As String, _
    targetPath As String, _
    version As VersionSpec _
) As Integer
public int CreateBranch(
    string sourcePath,
    string targetPath,
    VersionSpec version
)

Paramètres

  • sourcePath
    Type : System.String
    Chemin source de la branche )doit être un chemin d'accès au serveur.
  • targetPath
    Type : System.String
    Chemin d'accès cible de la branche )doit être un chemin d'accès au serveur.

Valeur de retour

Type : System.Int32
identificateur d'Changeset pour l'archivage de la branche.

Sécurité .NET Framework

Voir aussi

Référence

VersionControlServer Classe

CreateBranch, surcharge

Microsoft.TeamFoundation.VersionControl.Client, espace de noms