共用方式為


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 命名空間