Repository.Unshelve 方法

複製擱置變更至工作區。

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

語法

'宣告
<WebMethodAttribute> _
Public Function Unshelve ( _
    shelvesetName As String, _
    shelvesetOwner As String, _
    workspaceName As String, _
    workspaceOwner As String, _
    items As ItemSpec(), _
    <OutAttribute> ByRef failures As List(Of Failure), _
    <OutAttribute> ByRef getOperations As StreamingCollection(Of GetOperation) _
) As Shelveset
[WebMethodAttribute]
public Shelveset Unshelve(
    string shelvesetName,
    string shelvesetOwner,
    string workspaceName,
    string workspaceOwner,
    ItemSpec[] items,
    out List<Failure> failures,
    out StreamingCollection<GetOperation> getOperations
)

參數

  • shelvesetName
    類型:System.String
    擱置集名稱進行解除擱置。
  • shelvesetOwner
    類型:System.String
    擱置集的擁有人解除擱置的。
  • workspaceName
    類型:System.String
    工作區名稱解除擱置到中。
  • workspaceOwner
    類型:System.String
    工作區的擁有人解除擱置到中。

傳回值

類型:Microsoft.TeamFoundation.VersionControl.Server.Shelveset
會反映對用戶端狀態的 GetOperations 想要的變更。

備註

用戶端呼叫順序:1) 呼叫 Unshelve()。2) 對於每個 GetOperation 傳回:) 以應用程式/item.asmx,下載檔案嗎? pcid=X X 是暫止的變更 ID, b) 呼叫 UpdateLocalVersion,傳入區域資訊和暫止的變更 id. 的位置 如果中斷步驟 2,為 Get() 的後續呼叫會傳回未確認的輸入。 擱置集將保持不變,在這個呼叫,不過,可能會立即刪除之後,在步驟 2) 完成之前。

如果任何失敗,傳回所有作業將會失敗。

.NET Framework 安全性

請參閱

參考

Repository 類別

Microsoft.TeamFoundation.VersionControl.Server 命名空間