Export (0) Print
Expand All
Expand Minimize

HierarchyNode.DeleteItem Method

Visual Studio 2005

Handles the deletion or removal of a hierarchy item.

This method is not CLS-compliant.  

Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in mpf.project.nonshipping.dll)

public virtual int DeleteItem (
	uint delItemOp,
	uint itemId
)
public int DeleteItem (
	UInt32 delItemOp, 
	UInt32 itemId
)
public function DeleteItem (
	delItemOp : uint, 
	itemId : uint
) : int

Parameters

delItemOp

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

itemId

Item identifier of an item in the hierarchy.

Return Value

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

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

Community Additions

ADD
Show:
© 2014 Microsoft