Workspace.PendBranch Method (String, String, VersionSpec)

Schedules a file or folder for branching.

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

Syntax

'Declaration
Public Function PendBranch ( _
    sourcePath As String, _
    targetPath As String, _
    version As VersionSpec _
) As Integer
public int PendBranch(
    string sourcePath,
    string targetPath,
    VersionSpec version
)
public:
int PendBranch(
    String^ sourcePath, 
    String^ targetPath, 
    VersionSpec^ version
)
member PendBranch : 
        sourcePath:string * 
        targetPath:string * 
        version:VersionSpec -> int
public function PendBranch(
    sourcePath : String, 
    targetPath : String, 
    version : VersionSpec
) : int

Parameters

  • targetPath
    Type: System.String

    The location of the branch that will be created.

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