Repository4.Rollback 方法

復原在指定樹狀結構的變更特定版本的。

命名空間:  Microsoft.TeamFoundation.VersionControl.Server
組件:  Microsoft.TeamFoundation.VersionControl.Server (在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)

語法

'宣告
<WebMethodAttribute> _
Public Function Rollback ( _
    workspaceName As String, _
    workspaceOwner As String, _
    items As ItemSpec(), _
    itemVersion As VersionSpec, _
    from As VersionSpec, _
    to As VersionSpec, _
    rollbackOptions As Integer, _
    lockLevel As LockLevel, _
    itemPropertyFilters As String(), _
    itemAttributeFilters As String(), _
    <OutAttribute> ByRef conflicts As StreamingCollection(Of Conflict), _
    <OutAttribute> ByRef failures As StreamingCollection(Of Failure), _
    <OutAttribute> ByRef changePendedFlags As Integer _
) As StreamingCollection(Of GetOperation)
[WebMethodAttribute]
public StreamingCollection<GetOperation> Rollback(
    string workspaceName,
    string workspaceOwner,
    ItemSpec[] items,
    VersionSpec itemVersion,
    VersionSpec from,
    VersionSpec to,
    int rollbackOptions,
    LockLevel lockLevel,
    string[] itemPropertyFilters,
    string[] itemAttributeFilters,
    out StreamingCollection<Conflict> conflicts,
    out StreamingCollection<Failure> failures,
    out int changePendedFlags
)

參數

  • rollbackOptions
    類型:System.Int32
    選項,配合使用 RollbackOptions 列舉。
  • itemAttributeFilters
    類型:array<System.String[]
    傳回的屬性清單與 get ops。

傳回值

類型:Microsoft.TeamFoundation.Framework.Server.StreamingCollection<GetOperation>
更新的用戶端 GetOperations 清單。

.NET Framework 安全性

請參閱

參考

Repository4 類別

Microsoft.TeamFoundation.VersionControl.Server 命名空間