This topic has not yet been rated - Rate this topic

IVsHierarchyDeleteHandler Interface

Manages the deletion or removal of hierarchy items.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

[InterfaceTypeAttribute(1)] 
[GuidAttribute("320E51F6-D238-4BD0-BA89-CCA91DBCF411")] 
public interface IVsHierarchyDeleteHandler
/** @attribute InterfaceTypeAttribute(1) */ 
/** @attribute GuidAttribute("320E51F6-D238-4BD0-BA89-CCA91DBCF411") */ 
public interface IVsHierarchyDeleteHandler
InterfaceTypeAttribute(1) 
GuidAttribute("320E51F6-D238-4BD0-BA89-CCA91DBCF411") 
public interface IVsHierarchyDeleteHandler

This interface is optional and is retrieved by calling QueryInterface from IVsHierarchy. It supports implementation of the UIHWF_RouteCmdidDelete command.

Implement this interface to determine how deletion or removal of items from the hierarchy is handled. Hierarchies can support both a destructive delete-from-storage option and a nondestructive, remove-from-project option on a per-item basis; the operation is based on the users selection from a dialog box.

IVsUIHierarchyWindow handles the UIHWF_RouteCmdidDelete command. To remove or delete an item, IVsUIHierarchyWindow calls QueryDeleteItem or DeleteItem with appropriate operations.

See illustrations of the implementation and/or calling of this interface in the samples Basic Project Sample, Figures Project Sample, and My C Package Sample.

Notes to Implementers Implemented by hierarchies to control the delete or remove options for hierarchy items.

Notes to Callers Called by the environment when a hierarchy item is selected (QueryDeleteItem) or deleted/removed (DeleteItem).

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ