Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
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(), _
    itemPropertyFilters As String() _
) As GetStatus
public GetStatus Merge(
    ItemSpec source,
    string targetPath,
    VersionSpec versionFrom,
    VersionSpec versionTo,
    LockLevel lockLevel,
    MergeOptionsEx mergeOptions,
    string[] itemAttributeFilters,
    string[] itemPropertyFilters
)
public:
GetStatus^ Merge(
    ItemSpec^ source, 
    String^ targetPath, 
    VersionSpec^ versionFrom, 
    VersionSpec^ versionTo, 
    LockLevel lockLevel, 
    MergeOptionsEx mergeOptions, 
    array<String^>^ itemAttributeFilters, 
    array<String^>^ itemPropertyFilters
)
member Merge : 
        source:ItemSpec * 
        targetPath:string * 
        versionFrom:VersionSpec * 
        versionTo:VersionSpec * 
        lockLevel:LockLevel * 
        mergeOptions:MergeOptionsEx * 
        itemAttributeFilters:string[] * 
        itemPropertyFilters:string[] -> GetStatus
public function Merge(
    source : ItemSpec, 
    targetPath : String, 
    versionFrom : VersionSpec, 
    versionTo : VersionSpec, 
    lockLevel : LockLevel, 
    mergeOptions : MergeOptionsEx, 
    itemAttributeFilters : String[], 
    itemPropertyFilters : String[]
) : GetStatus
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: array<System.String[]- List of property filters to include with the get op 
- itemPropertyFilters
 Type: array<System.String[]
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client.GetStatus
status information
.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.