Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Destroy the subtree represented by itemSpec.
Namespace: Microsoft.TeamFoundation.VersionControl.Server
Assembly: Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)
Syntax
'Declaration
<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
)
[WebMethodAttribute]
public:
array<Item^>^ Destroy(
ItemSpec^ item,
VersionSpec^ versionSpec,
VersionSpec^ stopAtSpec,
int flags,
int maxClientPathLength,
[OutAttribute] array<Failure^>^% failures,
[OutAttribute] StreamingCollection<PendingSet^>^% pendingChanges,
[OutAttribute] StreamingCollection<PendingSet^>^% shelvedChanges
)
[<WebMethodAttribute>]
member Destroy :
item:ItemSpec *
versionSpec:VersionSpec *
stopAtSpec:VersionSpec *
flags:int *
maxClientPathLength:int *
failures:Failure[] byref *
pendingChanges:StreamingCollection<PendingSet> byref *
shelvedChanges:StreamingCollection<PendingSet> byref -> Item[]
public function Destroy(
item : ItemSpec,
versionSpec : VersionSpec,
stopAtSpec : VersionSpec,
flags : int,
maxClientPathLength : int,
failures : Failure[],
pendingChanges : StreamingCollection<PendingSet>,
shelvedChanges : StreamingCollection<PendingSet>
) : Item[]
Parameters
item
Type: Microsoft.TeamFoundation.VersionControl.Server.ItemSpecThe local or server path that will be recursively destroyed.
versionSpec
Type: Microsoft.TeamFoundation.VersionControl.Server.VersionSpecThe version spec to resolve itemSpec with.
stopAtSpec
Type: Microsoft.TeamFoundation.VersionControl.Server.VersionSpecThe simple version spec (not label or workspace) that influences keepHistory behavior.
flags
Type: System.Int32The set of destroy options KeepHistory: If set to true this means that destroy only removes the content of every version of a file up to but not including the changeset represented by stopAt Force: If set to true this means that destroy will asynchronously kick off content garbage collection Preview: If set to true no database data will actually be deleted, only the list of items that would have been destroyed are returned.
maxClientPathLength
Type: System.Int32The maximum client supported server path length.
failures
Type: array<Microsoft.TeamFoundation.VersionControl.Server.Failure[]%An output paramter that reports the failures if any that occurred while attempting the destroy operation.
- pendingChanges
Type: Microsoft.TeamFoundation.Framework.Server.StreamingCollection<PendingSet>%
- shelvedChanges
Type: Microsoft.TeamFoundation.Framework.Server.StreamingCollection<PendingSet>%
Return Value
Type: array<Microsoft.TeamFoundation.VersionControl.Server.Item[]
The list of items that were destroyed.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.