IVsHierarchyDeleteHandler3 Interface

 

Provides bulk item delete capability.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)

[GuidAttribute("3CCB143A-FB8D-455C-8413-9E051B98E557")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsHierarchyDeleteHandler3

NameDescription
System_CAPS_pubmethodDeleteItems(UInt32, UInt32, UInt32[], UInt32)

Handles the deletion or removal of one or more hierarchy items.

System_CAPS_pubmethodQueryDeleteItems(UInt32, UInt32, UInt32[], Boolean[])

Determines whether the hierarchy supports item deletion, removal, or both.

This interface is obtained by querying (QueryInterface) from an IVsHierarchy.

This interface should be used instead of IVsHierarchyDeleteHandler when deleting multiple items (or even just one item) to allow the implementation to use the most efficient algorithm.

In case of an error during a bulk delete operation, implementations should return a failing HRESULT immediately and return without deleting further items. Detailed error messages can be set with SetErrorInfo.

Return to top
Show: