This documentation is archived and is not being maintained.

Workspace.Merge Method (ItemSpec, String, VersionSpec, VersionSpec, LockLevel, MergeOptionsEx, String[])

Merges the source to the target.

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

public GetStatus Merge(
	ItemSpec source,
	string targetPath,
	VersionSpec versionFrom,
	VersionSpec versionTo,
	LockLevel lockLevel,
	MergeOptionsEx mergeOptions,
	string[] itemAttributeFilters
)

Parameters

source
Type: Microsoft.TeamFoundation.VersionControl.Client.ItemSpec

The source ItemSpec of the merge operation.

targetPath
Type: System.String

The target path of the merge operation.

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 that the target specifies.

mergeOptions
Type: Microsoft.TeamFoundation.VersionControl.Common.MergeOptionsEx

One or more of the enum values in MergeOptionsEx.

itemAttributeFilters
Type: 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.

The target path of the merge must be mapped.

Show: