TeamFoundationVersionControlService.AddConflict 方法 (TeamFoundationRequestContext, String, String, ConflictType, Int32, Int32, Int32, String, String, Int32)

添加一个本地磁盘冲突到服务器的列表此工作区域的冲突。

命名空间:  Microsoft.TeamFoundation.VersionControl.Server
程序集:  Microsoft.TeamFoundation.VersionControl.Server(在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)

语法

声明
Public Sub AddConflict ( _
    requestContext As TeamFoundationRequestContext, _
    workspaceName As String, _
    ownerName As String, _
    conflictType As ConflictType, _
    itemId As Integer, _
    versionFrom As Integer, _
    pendingChangeId As Integer, _
    sourceLocalItem As String, _
    targetLocalItem As String, _
    reason As Integer _
)
public void AddConflict(
    TeamFoundationRequestContext requestContext,
    string workspaceName,
    string ownerName,
    ConflictType conflictType,
    int itemId,
    int versionFrom,
    int pendingChangeId,
    string sourceLocalItem,
    string targetLocalItem,
    int reason
)

参数

  • itemId
    类型:System.Int32
    关联项的 ID 此冲突的。
  • versionFrom
    类型:System.Int32
    此冲突影响的版本。
  • pendingChangeId
    类型:System.Int32
    ID 关联的挂起此冲突的更改。
  • reason
    类型:System.Int32
    冲突的原因 (即。SourceWritable,TargetLocalPending,…)。

.NET Framework 安全性

请参阅

参考

TeamFoundationVersionControlService 类

AddConflict 重载

Microsoft.TeamFoundation.VersionControl.Server 命名空间