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
声明
Public Function Merge ( _
    source As ItemSpec, _
    targetPath As String, _
    versionFrom As VersionSpec, _
    versionTo As VersionSpec, _
    lockLevel As LockLevel, _
    mergeOptions As MergeOptionsEx, _
    propertyNameFilters As String() _
) As GetStatus
public GetStatus Merge(
    ItemSpec source,
    string targetPath,
    VersionSpec versionFrom,
    VersionSpec versionTo,
    LockLevel lockLevel,
    MergeOptionsEx mergeOptions,
    string[] propertyNameFilters
)
public:
GetStatus^ Merge(
    ItemSpec^ source, 
    String^ targetPath, 
    VersionSpec^ versionFrom, 
    VersionSpec^ versionTo, 
    LockLevel lockLevel, 
    MergeOptionsEx mergeOptions, 
    array<String^>^ propertyNameFilters
)
member Merge : 
        source:ItemSpec * 
        targetPath:string * 
        versionFrom:VersionSpec * 
        versionTo:VersionSpec * 
        lockLevel:LockLevel * 
        mergeOptions:MergeOptionsEx * 
        propertyNameFilters:string[] -> GetStatus 
public function Merge(
    source : ItemSpec, 
    targetPath : String, 
    versionFrom : VersionSpec, 
    versionTo : VersionSpec, 
    lockLevel : LockLevel, 
    mergeOptions : MergeOptionsEx, 
    propertyNameFilters : String[]
) : GetStatus
Parameters
- source
 Type: Microsoft.TeamFoundation.VersionControl.Client.ItemSpec
 The source ItemSpec 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.
- 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.
- propertyNameFilters
 Type: array<System.String[]
 List of property filters to include with the get operation.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client.GetStatus
A GetStatus object describing the number of operations, conflicts, errors, etc. that occurred while processing the Merge operation.
Remarks
The target path of the merge must be mapped.
.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.