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

  • flags
    Type: System.Int32

    The 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

See Also

Reference

TeamFoundationVersionControlService Class

Destroy Overload

Microsoft.TeamFoundation.VersionControl.Server Namespace