Workspace.Merge Method (String, String, VersionSpec, VersionSpec, LockLevel, RecursionType, MergeOptionsEx)
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)
Syntax
'宣告
Public Function Merge ( _
sourcePath As String, _
targetPath As String, _
versionFrom As VersionSpec, _
versionTo As VersionSpec, _
lockLevel As LockLevel, _
recursion As RecursionType, _
mergeOptions As MergeOptionsEx _
) As GetStatus
public GetStatus Merge(
string sourcePath,
string targetPath,
VersionSpec versionFrom,
VersionSpec versionTo,
LockLevel lockLevel,
RecursionType recursion,
MergeOptionsEx mergeOptions
)
public:
GetStatus^ Merge(
String^ sourcePath,
String^ targetPath,
VersionSpec^ versionFrom,
VersionSpec^ versionTo,
LockLevel lockLevel,
RecursionType recursion,
MergeOptionsEx mergeOptions
)
member Merge :
sourcePath:string *
targetPath:string *
versionFrom:VersionSpec *
versionTo:VersionSpec *
lockLevel:LockLevel *
recursion:RecursionType *
mergeOptions:MergeOptionsEx -> GetStatus
public function Merge(
sourcePath : String,
targetPath : String,
versionFrom : VersionSpec,
versionTo : VersionSpec,
lockLevel : LockLevel,
recursion : RecursionType,
mergeOptions : MergeOptionsEx
) : GetStatus
Parameters
- sourcePath
Type: System.String
The source path of the merge.
- targetPath
Type: System.String
The target path of the merge.
- versionFrom
Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpec
The starting version. May be null.
- versionTo
Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpec
The ending version. May be null.
- lockLevel
Type: Microsoft.TeamFoundation.VersionControl.Client.LockLevel
The lock level to apply to each item specified by the target.
- recursion
Type: Microsoft.TeamFoundation.VersionControl.Client.RecursionType
A flag specifying the type of recursion.
- mergeOptions
Type: Microsoft.TeamFoundation.VersionControl.Common.MergeOptionsEx
The merge options.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client.GetStatus
A GetStatus object describing the number of operations, conflicts, errors, etc. that occurred while processing the Merge operation.
Remarks
The target path of the merge must be mapped.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.