共用方式為


IVsHierarchyDeleteHandler3.DeleteItems Method

Definition

Handles the deletion or removal of one or more hierarchy items.

public:
 int DeleteItems(System::UInt32 cItems, System::UInt32 dwDelItemOp, cli::array <System::UInt32> ^ itemid, System::UInt32 dwFlags);
public:
 int DeleteItems(unsigned int cItems, unsigned int dwDelItemOp, Platform::Array <unsigned int> ^ itemid, unsigned int dwFlags);
int DeleteItems(unsigned int cItems, unsigned int dwDelItemOp, std::Array <unsigned int> const & itemid, unsigned int dwFlags);
public int DeleteItems (uint cItems, uint dwDelItemOp, uint[] itemid, uint dwFlags);
abstract member DeleteItems : uint32 * uint32 * uint32[] * uint32 -> int
Public Function DeleteItems (cItems As UInteger, dwDelItemOp As UInteger, itemid As UInteger(), dwFlags As UInteger) 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.

dwFlags
UInt32

[in] Provides options for the deletion process. If set to DHO_SUPPRESS_UI, no confirmation dialogs or source code control (SCC) checkout UI is displayed.

Returns

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

Applies to