Udostępnij za pośrednictwem


IVsHierarchyDeleteHandler.DeleteItem(UInt32, UInt32) Method

Definition

Handles the deletion or removal of a hierarchy item.

public:
 int DeleteItem(System::UInt32 dwDelItemOp, System::UInt32 itemid);
public:
 int DeleteItem(unsigned int dwDelItemOp, unsigned int itemid);
int DeleteItem(unsigned int dwDelItemOp, unsigned int itemid);
public int DeleteItem (uint dwDelItemOp, uint itemid);
abstract member DeleteItem : uint32 * uint32 -> int
Public Function DeleteItem (dwDelItemOp As UInteger, itemid As UInteger) As Integer

Parameters

dwDelItemOp
UInt32

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

itemid
UInt32

[in] Item identifier of an item in the hierarchy. VSITEMID_ROOT will delete everything in the hierarchy. VSITEMID_SELECTION is not supported.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsHierarchyDeleteHandler::DeleteItem(  
   [in] VSDELETEITEMOPERATION dwDelItemOp,  
   [in] VSITEMID itemid  
);  

Implement this method to delete or remove an item depending on the command option selected by the user.

Applies to