Repository.UndoPendingChanges 方法

移除一組暫止的變更。

如果 serverItem 規格不符合失敗,物件會傳回。

這個方法會傳回已取消的一些暫止的變更。 對於每個檔案,用戶端在 UndonePendingChange 物件應該呼叫 DownloadFile() 和指定傳回的版本擷取檔案的未修改版本。

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

語法

'宣告
<WebMethodAttribute> _
Public Function UndoPendingChanges ( _
    workspaceName As String, _
    ownerName As String, _
    items As ItemSpec(), _
    <OutAttribute> ByRef failures As List(Of Failure) _
) As StreamingCollection(Of GetOperation)
[WebMethodAttribute]
public StreamingCollection<GetOperation> UndoPendingChanges(
    string workspaceName,
    string ownerName,
    ItemSpec[] items,
    out List<Failure> failures
)

參數

  • workspaceName
    類型:System.String
    還原暫止變更的工作區中。
  • ownerName
    類型:System.String
    工作區的擁有人 (包括網域)。

傳回值

類型:Microsoft.TeamFoundation.Framework.Server.StreamingCollection<GetOperation>
必須套用至用戶端同時結果的取得作業。

.NET Framework 安全性

請參閱

參考

Repository 類別

Microsoft.TeamFoundation.VersionControl.Server 命名空間