Share via


IVsHierarchyDeleteHandler3.QueryDeleteItems Method

Definition

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

public:
 int QueryDeleteItems(System::UInt32 cItems, System::UInt32 dwDelItemOp, cli::array <System::UInt32> ^ itemid, cli::array <bool> ^ pfCanDelete);
public:
 int QueryDeleteItems(unsigned int cItems, unsigned int dwDelItemOp, Platform::Array <unsigned int> ^ itemid, Platform::Array <bool> ^ pfCanDelete);
int QueryDeleteItems(unsigned int cItems, unsigned int dwDelItemOp, std::Array <unsigned int> const & itemid, std::Array <bool> const & pfCanDelete);
public int QueryDeleteItems (uint cItems, uint dwDelItemOp, uint[] itemid, bool[] pfCanDelete);
abstract member QueryDeleteItems : uint32 * uint32 * uint32[] * bool[] -> int
Public Function QueryDeleteItems (cItems As UInteger, dwDelItemOp As UInteger, itemid As UInteger(), pfCanDelete As Boolean()) As Integer

Parameters

cItems
UInt32

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

dwDelItemOp
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
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
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.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to