IVsHierarchyItemCollectionProvider::GetFilteredHierarchyItemsAsync Method (IReadOnlyObservableSet<IVsHierarchyItem^>^, Predicate<IVsHierarchyItem^>^, CancellationToken, array<Int32>^)
Visual Studio 2015
Asynchronously gets a filtered set of hierarchy items from the specified hierarchy item set.
Assembly: Microsoft.VisualStudio.Shell.Immutable.11.0 (in Microsoft.VisualStudio.Shell.Immutable.11.0.dll)
Task<IFilteredHierarchyItemSet^>^ GetFilteredHierarchyItemsAsync( IReadOnlyObservableSet<IVsHierarchyItem^>^ sourceCollection, Predicate<IVsHierarchyItem^>^ includeInFilter, CancellationToken cancellationToken, ... array<int>^ dependentProperties )
Parameters
- sourceCollection
-
Type:
Microsoft.VisualStudio.Shell::IReadOnlyObservableSet<IVsHierarchyItem^>^
The hierarchy items to filter.
- includeInFilter
-
Type:
System::Predicate<IVsHierarchyItem^>^
The predicate used to determine what is included in the filtered set.
- cancellationToken
-
Type:
System.Threading::CancellationToken
A cancellation token that can be used to cancel the asynchronous request.
- dependentProperties
-
Type:
array<System::Int32>^
An optional set of property identifiers that indicate the hierarchy item properties that affect the filter and as a result cause the includeInFilter predicate to be re-queried.
Return Value
Type: System.Threading.Tasks::Task<IFilteredHierarchyItemSet^>^A task that, when complete, provides the filtered set of hierarchy items.
Show: