Condividi tramite


HierarchyTreeFilterProvider.HierarchyTreeFilter Class

Definition

Base class which implements some of the boilerplate parts of an ISolutionTreeFilter. This includes behavior to ensure newly added hierarchy items are always visible through the filtered view, even if those items do not match the filter. Derived types must still implement the logic for constructing the set of included items.

protected: ref class HierarchyTreeFilterProvider::HierarchyTreeFilter abstract : Microsoft::VisualStudio::PlatformUI::DisposableObject, IDisposable, Microsoft::VisualStudio::Shell::ISolutionTreeFilter, System::ComponentModel::INotifyPropertyChanged, System::ComponentModel::ISupportInitialize, System::ComponentModel::ISupportInitializeNotification
protected abstract class HierarchyTreeFilterProvider.HierarchyTreeFilter : Microsoft.VisualStudio.PlatformUI.DisposableObject, IDisposable, Microsoft.VisualStudio.Shell.ISolutionTreeFilter, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.ISupportInitialize, System.ComponentModel.ISupportInitializeNotification
Protected MustInherit Class HierarchyTreeFilterProvider.HierarchyTreeFilter
Inherits DisposableObject
Implements IDisposable, INotifyPropertyChanged, ISolutionTreeFilter, ISupportInitialize, ISupportInitializeNotification
Inheritance
HierarchyTreeFilterProvider.HierarchyTreeFilter
Implements

Constructors

HierarchyTreeFilterProvider.HierarchyTreeFilter()

Initializes a new instance of the HierarchyTreeFilter class.

Properties

CancellationToken

Gets a CancellationToken that will be cancelled when this filter is disposed.

IncludedItems

Gets the set of items that are included by the filter.

IsDisposed

Returns whether the object has been disposed once, protects against double disposal

(Inherited from DisposableObject)
IsInitialized

Gets a value indicating whether the component is initialized.

Methods

Dispose()

Disposes the current object then suppresses further finalization.

(Inherited from DisposableObject)
Dispose(Boolean)

Standard virtual overload for IDisposable pattern

(Inherited from DisposableObject)
DisposeManagedResources()

Allows derived classes to provide custom dispose handling for managed resources

DisposeNativeResources()

Allows derived classes to provide custom dispose handling for native resources

(Inherited from DisposableObject)
GetFilterDescendantsBehavior(Object)

Decide whether to include descendents if none are exlicitly specified.

GetIncludedItemsAsync(IEnumerable<IVsHierarchyItem>)

Asynchronously initializes and returns the set of items that are included by the filter.

ThrowIfDisposed()

Throws an ObjectDisposedException if this object has been disposed

(Inherited from DisposableObject)

Events

Disposing

Raised when the event is being disposed, while it is still accessible.

(Inherited from DisposableObject)
Initialized

Occurs when initialization of the component is completed.

PropertyChanged

Occurs when a property value changes.

Explicit Interface Implementations

ISupportInitialize.BeginInit()

Signals the object that initialization is starting.

ISupportInitialize.EndInit()

Signals the object that initialization is complete.

Applies to