共用方式為


RepositoryExtensions.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, _
    <OutAttribute> ByRef conflicts As StreamingCollection(Of Conflict), _
    <OutAttribute> ByRef failures As StreamingCollection(Of Failure), _
    propertyNameFilters As String(), _
    <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,
    out StreamingCollection<Conflict> conflicts,
    out StreamingCollection<Failure> failures,
    string[] propertyNameFilters,
    out int changePendedFlags
)

參數

  • rollbackOptions
    類型:System.Int32
    選項,配合使用 RollbackOptions 列舉。
  • propertyNameFilters
    類型:array<System.String[]
    傳回的屬性清單以取得作業。

傳回值

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

.NET Framework 安全性

請參閱

參考

RepositoryExtensions 類別

Microsoft.TeamFoundation.VersionControl.Server 命名空間