Repository5.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, _
    maxClientPathLength 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,
    int maxClientPathLength,
    out Failure[] failures,
    out StreamingCollection<PendingSet> pendingChanges,
    out StreamingCollection<PendingSet> shelvedChanges
)

参数

  • flags
    类型:System.Int32
    设置销毁选项 KeepHistory:如果设置为 true 此只意味着销毁移除文件中的每个版本内容等于但不包含 stopAt 强制表示的变更集:如果设置为 true 这意味着销毁异步启动内容垃圾回收预览:如果设置为 true 数据库数据实际上不会删除,因此,只有将销毁的项返回。
  • maxClientPathLength
    类型:System.Int32
    最大客户端支持服务器路径长度。

返回值

类型:array<Microsoft.TeamFoundation.VersionControl.Server.Item[]
销毁项的列表。

.NET Framework 安全性

请参阅

参考

Repository5 类

Microsoft.TeamFoundation.VersionControl.Server 命名空间