Compartir a través de


IVsHierarchyDeleteHandler Interface

Definition

Manages the deletion or removal of hierarchy items.

public interface class IVsHierarchyDeleteHandler
public interface class IVsHierarchyDeleteHandler
__interface IVsHierarchyDeleteHandler
[System.Runtime.InteropServices.Guid("320E51F6-D238-4BD0-BA89-CCA91DBCF411")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsHierarchyDeleteHandler
[System.Runtime.InteropServices.Guid("320E51F6-D238-4BD0-BA89-CCA91DBCF411")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsHierarchyDeleteHandler
[<System.Runtime.InteropServices.Guid("320E51F6-D238-4BD0-BA89-CCA91DBCF411")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsHierarchyDeleteHandler = interface
[<System.Runtime.InteropServices.Guid("320E51F6-D238-4BD0-BA89-CCA91DBCF411")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsHierarchyDeleteHandler = interface
Public Interface IVsHierarchyDeleteHandler
Attributes

Remarks

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.

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(UInt32, UInt32, Int32)) or deleted/removed (DeleteItem(UInt32, UInt32)).

Methods

DeleteItem(UInt32, UInt32)

Handles the deletion or removal of a hierarchy item.

QueryDeleteItem(UInt32, UInt32, Int32)

Called by the environment to determine whether the hierarchy supports item deletion, removal, or both.

Applies to