Workspace.Merge Method (ItemSpec, String, VersionSpec, VersionSpec, LockLevel, MergeOptionsEx, array<String )
Merges the source to the target.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Function Merge ( _
source As ItemSpec, _
targetPath As String, _
versionFrom As VersionSpec, _
versionTo As VersionSpec, _
lockLevel As LockLevel, _
mergeOptions As MergeOptionsEx, _
itemAttributeFilters As String() _
) As GetStatus
public GetStatus Merge(
ItemSpec source,
string targetPath,
VersionSpec versionFrom,
VersionSpec versionTo,
LockLevel lockLevel,
MergeOptionsEx mergeOptions,
string[] itemAttributeFilters
)
public:
GetStatus^ Merge(
ItemSpec^ source,
String^ targetPath,
VersionSpec^ versionFrom,
VersionSpec^ versionTo,
LockLevel lockLevel,
MergeOptionsEx mergeOptions,
array<String^>^ itemAttributeFilters
)
member Merge :
source:ItemSpec *
targetPath:string *
versionFrom:VersionSpec *
versionTo:VersionSpec *
lockLevel:LockLevel *
mergeOptions:MergeOptionsEx *
itemAttributeFilters:string[] -> GetStatus
public function Merge(
source : ItemSpec,
targetPath : String,
versionFrom : VersionSpec,
versionTo : VersionSpec,
lockLevel : LockLevel,
mergeOptions : MergeOptionsEx,
itemAttributeFilters : String[]
) : GetStatus
Parameters
source
Type: Microsoft.TeamFoundation.VersionControl.Client.ItemSpecThe source ItemSpec of the merge operation.
targetPath
Type: System.StringThe target path of the merge operation.
versionFrom
Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpecThe starting version. May be null.
versionTo
Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpecThe ending version. May be null.
lockLevel
Type: Microsoft.TeamFoundation.VersionControl.Client.LockLevelThe lock level to apply to each item that the target specifies.
mergeOptions
Type: Microsoft.TeamFoundation.VersionControl.Common.MergeOptionsExOne or more of the enum values in MergeOptionsEx.
itemAttributeFilters
Type: array<System.String[]A list of property filters to include with the Get operation.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client.GetStatus
A GetStatus object that indicates how many operations, conflicts, errors, and so on occurred when the Get operation was being processed.
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.