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

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)

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

Parameters

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

the source of the merge includes path (local or server), recursion and deletionId.

targetPath
Type: System.String

the target of the merge (local or server path -- must be mapped)

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

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

the merge options specified

itemAttributeFilters
Type: System.String[]

List of property filters to include with the get op

itemPropertyFilters
Type: System.String[]

Show: