Compartilhar via


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)

Syntax

'Declaration
<GuidAttribute("3CCB143A-FB8D-455C-8413-9E051B98E557")> _
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
Public Interface IVsHierarchyDeleteHandler3
[GuidAttribute("3CCB143A-FB8D-455C-8413-9E051B98E557")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsHierarchyDeleteHandler3
[GuidAttribute(L"3CCB143A-FB8D-455C-8413-9E051B98E557")]
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
public interface class IVsHierarchyDeleteHandler3
[<GuidAttribute("3CCB143A-FB8D-455C-8413-9E051B98E557")>]
[<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>]
type IVsHierarchyDeleteHandler3 =  interface end
public interface IVsHierarchyDeleteHandler3

The IVsHierarchyDeleteHandler3 type exposes the following members.

Methods

  Name Description
Public method DeleteItems Handles the deletion or removal of one or more hierarchy items.
Public method QueryDeleteItems Determines whether the hierarchy supports item deletion, removal, or both.

Top

Remarks

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.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace