共用方式為


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[]
    要傳回的屬性清單取得選項。

傳回值

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

.NET Framework 安全性

請參閱

參考

Repository4 類別

Microsoft.TeamFoundation.VersionControl.Server 命名空間