IVsHierarchyDeleteHandler3::QueryDeleteItems Method (UInt32, UInt32, array<UInt32>^, array<Boolean>^)
Determines whether the hierarchy supports item deletion, removal, or both.
Assembly: Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
int QueryDeleteItems( unsigned int cItems, unsigned int dwDelItemOp, array<unsigned int>^ itemid, array<bool>^ pfCanDelete )
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::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.