共用方式為


Repository.Destroy 方法

終結 itemSpec 表示的子樹狀結構。

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

語法

'宣告
<WebMethodAttribute> _
Public Function Destroy ( _
    item As ItemSpec, _
    versionSpec As VersionSpec, _
    stopAtSpec As VersionSpec, _
    flags As Integer, _
    <OutAttribute> ByRef failures As Failure(), _
    <OutAttribute> ByRef pendingChanges As StreamingCollection(Of PendingSet), _
    <OutAttribute> ByRef shelvedChanges As StreamingCollection(Of PendingSet) _
) As Item()
[WebMethodAttribute]
public Item[] Destroy(
    ItemSpec item,
    VersionSpec versionSpec,
    VersionSpec stopAtSpec,
    int flags,
    out Failure[] failures,
    out StreamingCollection<PendingSet> pendingChanges,
    out StreamingCollection<PendingSet> shelvedChanges
)

參數

  • flags
    型別:System.Int32
    一組終結選項。KeepHistory:如果為 true 的這個集合表示一直到 (請終結只會移除檔案中的每個版本的內容,但不包括停止表示關聯的變更集。在強度:如果為 true 的這個集合表示終結非同步啟動內容的記憶體回收。預覽:如果為 true 資料庫資料的集合實際上不會被刪除,,則只會終結項目清單傳回。

傳回值

型別:array<Microsoft.TeamFoundation.VersionControl.Server.Item[]
終結的項目清單。

.NET Framework 安全性

請參閱

參考

Repository 類別

Microsoft.TeamFoundation.VersionControl.Server 命名空間