共用方式為


TeamFoundationVersionControlService.Rollback 方法 (TeamFoundationRequestContext, String, String, array<ItemSpec[], VersionSpec, VersionSpec, VersionSpec, Int32, LockLevel, array<String[], array<String[])

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

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

語法

'宣告
Public Function Rollback ( _
    requestContext As TeamFoundationRequestContext, _
    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() _
) As TeamFoundationDataReader
public TeamFoundationDataReader Rollback(
    TeamFoundationRequestContext requestContext,
    string workspaceName,
    string workspaceOwner,
    ItemSpec[] items,
    VersionSpec itemVersion,
    VersionSpec from,
    VersionSpec to,
    int rollbackOptions,
    LockLevel lockLevel,
    string[] itemPropertyFilters,
    string[] itemAttributeFilters
)

參數

  • rollbackOptions
    類型:System.Int32
    選項,配合使用 RollbackOptions 列舉。

傳回值

類型:Microsoft.TeamFoundation.Framework.Server.TeamFoundationDataReader
含有結果的 TeamFoundationDataReader 在下列順序:更新的用戶端 GetOperations GetOperation [-清單。衝突 [-無法解析的擱置的項目清單。如果再解析包含復原作業詳細資料。失敗 [-沒有復原項目的清單。

.NET Framework 安全性

請參閱

參考

TeamFoundationVersionControlService 類別

Rollback 多載

Microsoft.TeamFoundation.VersionControl.Server 命名空間