Compartilhar via


Workspace.PendBranch Method (String, String, VersionSpec, LockLevel, Boolean, Boolean, Boolean)

Schedules a file or folder for branching.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

Syntax

'Declaração
Public Function PendBranch ( _
    sourcePath As String, _
    targetPath As String, _
    version As VersionSpec, _
    lockLevel As LockLevel, _
    updateDisk As Boolean, _
    detectFolderAtTarget As Boolean, _
    silent As Boolean _
) As Integer
public int PendBranch(
    string sourcePath,
    string targetPath,
    VersionSpec version,
    LockLevel lockLevel,
    bool updateDisk,
    bool detectFolderAtTarget,
    bool silent
)
public:
int PendBranch(
    String^ sourcePath, 
    String^ targetPath, 
    VersionSpec^ version, 
    LockLevel lockLevel, 
    bool updateDisk, 
    bool detectFolderAtTarget, 
    bool silent
)
member PendBranch : 
        sourcePath:string * 
        targetPath:string * 
        version:VersionSpec * 
        lockLevel:LockLevel * 
        updateDisk:bool * 
        detectFolderAtTarget:bool * 
        silent:bool -> int 
public function PendBranch(
    sourcePath : String, 
    targetPath : String, 
    version : VersionSpec, 
    lockLevel : LockLevel, 
    updateDisk : boolean, 
    detectFolderAtTarget : boolean, 
    silent : boolean
) : int

Parameters

  • targetPath
    Type: System.String
    The location for the branch that will be created.
  • updateDisk
    Type: System.Boolean
    True to populate the branch on local disk. Otherwise, the disk is not modified.
  • detectFolderAtTarget
    Type: System.Boolean
    True to look for a local folder existing at the target and notify the server. False to not check.
  • silent
    Type: System.Boolean
    Specifies whether server should return get operations.

Return Value

Type: System.Int32
The number of pending changes.

Remarks

Branching a folder is implicitly recursive.

.NET Framework Security

See Also

Reference

Workspace Class

PendBranch Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace