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
工作區擁有人 (包含網域)。
- items
型別:array<Microsoft.TeamFoundation.VersionControl.Server.ItemSpec[]
還原的項目陣列。
- failures
型別:System.Collections.Generic.List<Failure>%
無法復原的項目的失敗物件。
傳回值
型別:Microsoft.TeamFoundation.Framework.Server.StreamingCollection<GetOperation>
取得陣列必須套用至用戶端會同時的作業。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。