Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual Studio SDK
Workspace Class
Workspace Methods
Merge Method
 Merge Method (String, String, Versi...
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Reference for Team Foundation Server SDK
Workspace.Merge Method (String, String, VersionSpec, VersionSpec, LockLevel, RecursionType, MergeOptions)

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)

Visual Basic (Declaration)
Public Function Merge ( _
	sourcePath As String, _
	targetPath As String, _
	versionFrom As VersionSpec, _
	versionTo As VersionSpec, _
	lockLevel As LockLevel, _
	recursion As RecursionType, _
	mergeOptions As MergeOptions _
) As GetStatus
Visual Basic (Usage)
Dim instance As Workspace
Dim sourcePath As String
Dim targetPath As String
Dim versionFrom As VersionSpec
Dim versionTo As VersionSpec
Dim lockLevel As LockLevel
Dim recursion As RecursionType
Dim mergeOptions As MergeOptions
Dim returnValue As GetStatus

returnValue = instance.Merge(sourcePath, targetPath, versionFrom, versionTo, lockLevel, recursion, mergeOptions)
C#
public GetStatus Merge (
	string sourcePath,
	string targetPath,
	VersionSpec versionFrom,
	VersionSpec versionTo,
	LockLevel lockLevel,
	RecursionType recursion,
	MergeOptions mergeOptions
)
C++
public:
GetStatus^ Merge (
	String^ sourcePath, 
	String^ targetPath, 
	VersionSpec^ versionFrom, 
	VersionSpec^ versionTo, 
	LockLevel lockLevel, 
	RecursionType recursion, 
	MergeOptions mergeOptions
)
J#
public GetStatus Merge (
	String sourcePath, 
	String targetPath, 
	VersionSpec versionFrom, 
	VersionSpec versionTo, 
	LockLevel lockLevel, 
	RecursionType recursion, 
	MergeOptions mergeOptions
)
JScript
public function Merge (
	sourcePath : String, 
	targetPath : String, 
	versionFrom : VersionSpec, 
	versionTo : VersionSpec, 
	lockLevel : LockLevel, 
	recursion : RecursionType, 
	mergeOptions : MergeOptions
) : GetStatus

Parameters

sourcePath

The source of the merge (local or server path).

targetPath

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

versionFrom

The starting version that may be a null reference (Nothing in Visual Basic).

versionTo

The ending version that may be a null reference (Nothing in Visual Basic).

lockLevel

The lock level to apply to each item specified by the target.

recursion

The level of recursion desired.

mergeOptions

Specifies the merge options.

Return Value

Status information.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker