HierarchyTreeFilterProvider.HierarchyTreeFilter HierarchyTreeFilterProvider.HierarchyTreeFilter 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::ISupportInitializeNotification
protected abstract class HierarchyTreeFilterProvider.HierarchyTreeFilter : Microsoft.VisualStudio.PlatformUI.DisposableObject, IDisposable, Microsoft.VisualStudio.Shell.ISolutionTreeFilter, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.ISupportInitializeNotification
Protected MustInherit Class HierarchyTreeFilterProvider.HierarchyTreeFilter
Inherits DisposableObject
Implements IDisposable, INotifyPropertyChanged, ISolutionTreeFilter, ISupportInitializeNotification
Inheritance
HierarchyTreeFilterProvider.HierarchyTreeFilterHierarchyTreeFilterProvider.HierarchyTreeFilterHierarchyTreeFilterProvider.HierarchyTreeFilter
Implements

Constructors

HierarchyTreeFilterProvider.HierarchyTreeFilter() HierarchyTreeFilterProvider.HierarchyTreeFilter() HierarchyTreeFilterProvider.HierarchyTreeFilter()

Initializes a new instance of the HierarchyTreeFilter class.

Properties

CancellationToken CancellationToken CancellationToken

Gets a CancellationToken that will be cancelled when this filter is disposed. You should use this CancellationToken for asynchronous operations performed by your filter.

IncludedItems IncludedItems IncludedItems

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

IsDisposed IsDisposed IsDisposed

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

(Inherited from DisposableObject)
IsInitialized IsInitialized IsInitialized

Gets a value indicating whether the component is initialized.

Methods

Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

(Inherited from DisposableObject)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Standard virtual overload for IDisposable pattern.

(Inherited from DisposableObject)
DisposeManagedResources() DisposeManagedResources() DisposeManagedResources()

Allows derived classes to provide custom dispose handling for managed resources

DisposeNativeResources() DisposeNativeResources() DisposeNativeResources()

Allows derived classes to provide custom dispose handling for native resources.

(Inherited from DisposableObject)
GetFilterDescendantsBehavior(Object) GetFilterDescendantsBehavior(Object) GetFilterDescendantsBehavior(Object)

Decide whether to include descendents if none are exlicitly specified.

GetIncludedItemsAsync(IEnumerable<IVsHierarchyItem>) GetIncludedItemsAsync(IEnumerable<IVsHierarchyItem>) GetIncludedItemsAsync(IEnumerable<IVsHierarchyItem>)

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

ThrowIfDisposed() ThrowIfDisposed() ThrowIfDisposed()

Throws an ObjectDisposedException if this object has been disposed.

(Inherited from DisposableObject)

Events

Disposing Disposing Disposing

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

(Inherited from DisposableObject)
Initialized Initialized Initialized

Occurs when initialization of the component is completed.

PropertyChanged PropertyChanged PropertyChanged

Occurs when a property value changes.

Explicit Interface Implementations

ISupportInitialize.BeginInit() ISupportInitialize.BeginInit() ISupportInitialize.BeginInit()

Signals the object that initialization is starting.

ISupportInitialize.EndInit() ISupportInitialize.EndInit() ISupportInitialize.EndInit()

Signals the object that initialization is complete.

Extension Methods

FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)
IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

Applies to