Share via


IVsHierarchyDeleteHandler3.QueryDeleteItems Method

Determines whether the hierarchy supports item deletion, removal, or both.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)

Syntax

'Declaration
Function QueryDeleteItems ( _
    cItems As UInteger, _
    dwDelItemOp As UInteger, _
    itemid As UInteger(), _
    <OutAttribute> pfCanDelete As Boolean() _
) As Integer
int QueryDeleteItems(
    uint cItems,
    uint dwDelItemOp,
    uint[] itemid,
    bool[] pfCanDelete
)
int QueryDeleteItems(
    [InAttribute] unsigned int cItems, 
    [InAttribute] unsigned int dwDelItemOp, 
    [InAttribute] array<unsigned int>^ itemid, 
    [OutAttribute] array<bool>^ pfCanDelete
)
abstract QueryDeleteItems : 
        cItems:uint32 * 
        dwDelItemOp:uint32 * 
        itemid:uint32[] * 
        pfCanDelete:bool[] byref -> int
function QueryDeleteItems(
    cItems : uint, 
    dwDelItemOp : uint, 
    itemid : uint[], 
    pfCanDelete : boolean[]
) : int

Parameters

  • cItems
    Type: System.UInt32

    [in] The number of items to be deleted or removed.

  • dwDelItemOp
    Type: System.UInt32

    [in] Determines whether the hierarchy or hierarchy items are deleted from storage or removed from the project. Values are taken from the __VSDELETEITEMOPERATION enumeration.

  • itemid
    Type: array<System.UInt32[]

    [in, size_is(cItems)] Array of item identifiers of the items in the hierarchy. VSITEMID_ROOT deletes everything in the hierarchy. VSITEMID_SELECTION is not supported.

  • pfCanDelete
    Type: array<System.Boolean[]

    [in, out, size_is(cItems)] An array that specifies whether individual items can be deleted or removed from the hierarchy. If true, then the hierarchy supports either item deletion or item removal, depending on the value specified for the dwDelItemOp parameter. If false, then the hierarchy or hierarchy item cannot be deleted.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

.NET Framework Security

See Also

Reference

IVsHierarchyDeleteHandler3 Interface

Microsoft.VisualStudio.Shell.Interop Namespace