Share via


VersionControlServer.CreateBranch, méthode (String, String, VersionSpec, String, String, CheckinNote, PolicyOverrideInfo, array<Mapping[])

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, _
    owner As String, _
    comment As String, _
    checkinNote As CheckinNote, _
    policyOverride As PolicyOverrideInfo, _
    mappings As Mapping() _
) As Integer
public int CreateBranch(
    string sourcePath,
    string targetPath,
    VersionSpec version,
    string owner,
    string comment,
    CheckinNote checkinNote,
    PolicyOverrideInfo policyOverride,
    Mapping[] mappings
)

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.
  • owner
    Type : System.String
    Propriétaire d'Changeset. Si null, les valeurs par défaut à l'utilisateur authentifié.

Valeur de retour

Type : System.Int32
identificateur d'Changeset pour le signer de la branche.

Sécurité .NET Framework

Voir aussi

Référence

VersionControlServer Classe

CreateBranch, surcharge

Microsoft.TeamFoundation.VersionControl.Client, espace de noms