TeamFoundationVersionControlService.Destroy Method (TeamFoundationRequestContext, ItemSpec, VersionSpec, VersionSpec, Int32)
Destroy the subtree represented by itemSpec.
Namespace: Microsoft.TeamFoundation.VersionControl.Server
Assembly: Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)
Syntax
'Declaration
Public Function Destroy ( _
requestContext As TeamFoundationRequestContext, _
item As ItemSpec, _
versionSpec As VersionSpec, _
stopAtSpec As VersionSpec, _
flags As Integer _
) As TeamFoundationDataReader
public TeamFoundationDataReader Destroy(
TeamFoundationRequestContext requestContext,
ItemSpec item,
VersionSpec versionSpec,
VersionSpec stopAtSpec,
int flags
)
public:
TeamFoundationDataReader^ Destroy(
TeamFoundationRequestContext^ requestContext,
ItemSpec^ item,
VersionSpec^ versionSpec,
VersionSpec^ stopAtSpec,
int flags
)
member Destroy :
requestContext:TeamFoundationRequestContext *
item:ItemSpec *
versionSpec:VersionSpec *
stopAtSpec:VersionSpec *
flags:int -> TeamFoundationDataReader
public function Destroy(
requestContext : TeamFoundationRequestContext,
item : ItemSpec,
versionSpec : VersionSpec,
stopAtSpec : VersionSpec,
flags : int
) : TeamFoundationDataReader
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context.
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 excluding the changeset represented by stopAt Force: If set to true this means that destroy will asynchronously start 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.
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationDataReader
TeamFoundationDataReader with results in the following order: Item[] - The list of items that were destroyed. Failure[] - List of reported failures that occurred when it tries the destroy operation. PendingSet[] - Set of pending changes that were destroyed. PendingSet[] - Set of shelved changes 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.