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 命名空间