This documentation is archived and is not being maintained.

Workspace::Merge Method (String, String, VersionSpec, VersionSpec)

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(
	String^ sourcePath, 
	String^ targetPath, 
	VersionSpec^ versionFrom, 
	VersionSpec^ versionTo
)

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.

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: