Handles the deletion or removal of a hierarchy item.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Overridable Function DeleteItem ( _
delItemOp As UInteger, _
itemId As UInteger _
) As Integer
'使用
Dim instance As HierarchyNode
Dim delItemOp As UInteger
Dim itemId As UInteger
Dim returnValue As Integer
returnValue = instance.DeleteItem(delItemOp, _
itemId)
public virtual int DeleteItem(
uint delItemOp,
uint itemId
)
public:
virtual int DeleteItem(
unsigned int delItemOp,
unsigned int itemId
)
public function DeleteItem(
delItemOp : uint,
itemId : uint
) : int
Parameters
delItemOp
Type: System.UInt32Determines whether the hierarchy or hierarchy item is deleted from storage or removed from the project. Values are taken from the __VSDELETEITEMOPERATION enumeration.
itemId
Type: System.UInt32Item identifier of an item in the hierarchy.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsHierarchyDeleteHandler.DeleteItem(UInt32, UInt32)
Remarks
Implement this method to delete or remove an item, depending on the command that is selected by the user.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.