Repository.Merge 方法
返回GetOperations列出挂起的合并自动解析的和冲突的不会自动解决的线程以外的。
命名空间: Microsoft.TeamFoundation.VersionControl.Server
程序集: Microsoft.TeamFoundation.VersionControl.Server(在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)
语法
声明
<WebMethodAttribute> _
Public Function Merge ( _
workspaceName As String, _
workspaceOwner As String, _
source As ItemSpec, _
target As ItemSpec, _
from As VersionSpec, _
to As VersionSpec, _
options As MergeOptions, _
lockLevel As LockLevel, _
optionsEx As Integer, _
<OutAttribute> ByRef failures As StreamingCollection(Of Failure), _
<OutAttribute> ByRef conflicts As StreamingCollection(Of Conflict) _
) As StreamingCollection(Of GetOperation)
[WebMethodAttribute]
public StreamingCollection<GetOperation> Merge(
string workspaceName,
string workspaceOwner,
ItemSpec source,
ItemSpec target,
VersionSpec from,
VersionSpec to,
MergeOptions options,
LockLevel lockLevel,
int optionsEx,
out StreamingCollection<Failure> failures,
out StreamingCollection<Conflict> conflicts
)
参数
- workspaceName
类型:System.String
工作区名称。
- workspaceOwner
类型:System.String
工作区的所有者。
- source
类型:Microsoft.TeamFoundation.VersionControl.Server.ItemSpec
合并源中的本地/服务器路径。
- target
类型:Microsoft.TeamFoundation.VersionControl.Server.ItemSpec
合并目标中的本地/服务器路径。
- from
类型:Microsoft.TeamFoundation.VersionControl.Server.VersionSpec
启动源的版本(可能为空)。
- to
类型:Microsoft.TeamFoundation.VersionControl.Server.VersionSpec
源结束版本(可能为空)。
- options
类型:Microsoft.TeamFoundation.VersionControl.Server.MergeOptions
合并选项使用。
- lockLevel
类型:Microsoft.TeamFoundation.VersionControl.Server.LockLevel
应用的锁。在合并涉及的项目。
- optionsEx
类型:System.Int32
使用此发送新值和旧合并选项到服务器。值在MergeOptionsEx枚举。
- failures
类型:Microsoft.TeamFoundation.Framework.Server.StreamingCollection<Failure>%
不会合并的项列表。
- conflicts
类型:Microsoft.TeamFoundation.Framework.Server.StreamingCollection<Conflict>%
无法解析的挂起的组合列表。
返回值
类型:Microsoft.TeamFoundation.Framework.Server.StreamingCollection<GetOperation>
列出更新的客户端GetOperations。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。