Performs a merge of the source to the target.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in microsoft.teamfoundation.versioncontrol.client.dll)
Visual Basic (Declaration)
Public Function Merge ( _
sourcePath As String, _
targetPath As String, _
versionFrom As VersionSpec, _
versionTo As VersionSpec, _
lockLevel As LockLevel, _
recursion As RecursionType, _
mergeOptions As MergeOptions _
) As GetStatus
Dim instance As Workspace
Dim sourcePath As String
Dim targetPath As String
Dim versionFrom As VersionSpec
Dim versionTo As VersionSpec
Dim lockLevel As LockLevel
Dim recursion As RecursionType
Dim mergeOptions As MergeOptions
Dim returnValue As GetStatus
returnValue = instance.Merge(sourcePath, targetPath, versionFrom, versionTo, lockLevel, recursion, mergeOptions)
public GetStatus Merge (
string sourcePath,
string targetPath,
VersionSpec versionFrom,
VersionSpec versionTo,
LockLevel lockLevel,
RecursionType recursion,
MergeOptions mergeOptions
)
public:
GetStatus^ Merge (
String^ sourcePath,
String^ targetPath,
VersionSpec^ versionFrom,
VersionSpec^ versionTo,
LockLevel lockLevel,
RecursionType recursion,
MergeOptions mergeOptions
)
public GetStatus Merge (
String sourcePath,
String targetPath,
VersionSpec versionFrom,
VersionSpec versionTo,
LockLevel lockLevel,
RecursionType recursion,
MergeOptions mergeOptions
)
public function Merge (
sourcePath : String,
targetPath : String,
versionFrom : VersionSpec,
versionTo : VersionSpec,
lockLevel : LockLevel,
recursion : RecursionType,
mergeOptions : MergeOptions
) : GetStatus
Parameters
- sourcePath
The source of the merge (local or server path).
- targetPath
The target of the merge (local or server path -- must be mapped).
- versionFrom
The starting version that may be a null reference (Nothing in Visual Basic).
- versionTo
The ending version that may be a null reference (Nothing in Visual Basic).
- lockLevel
The lock level to apply to each item specified by the target.
- recursion
The level of recursion desired.
- mergeOptions
Specifies the merge options.
Return Value
Status information.