Share via


IVsHierarchyItemCollectionProvider.GetFilteredHierarchyItemsAsync Method

Asynchronously gets a filtered set of hierarchy items from the specified hierarchy item set.

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

Syntax

'Declaration
Function GetFilteredHierarchyItemsAsync ( _
    sourceCollection As IReadOnlyObservableSet(Of IVsHierarchyItem), _
    includeInFilter As Predicate(Of IVsHierarchyItem), _
    cancellationToken As CancellationToken, _
    ParamArray dependentProperties As Integer() _
) As Task(Of IFilteredHierarchyItemSet)
Task<IFilteredHierarchyItemSet> GetFilteredHierarchyItemsAsync(
    IReadOnlyObservableSet<IVsHierarchyItem> sourceCollection,
    Predicate<IVsHierarchyItem> includeInFilter,
    CancellationToken cancellationToken,
    params int[] dependentProperties
)
Task<IFilteredHierarchyItemSet^>^ GetFilteredHierarchyItemsAsync(
    IReadOnlyObservableSet<IVsHierarchyItem^>^ sourceCollection, 
    Predicate<IVsHierarchyItem^>^ includeInFilter, 
    CancellationToken cancellationToken, 
    ... array<int>^ dependentProperties
)
abstract GetFilteredHierarchyItemsAsync : 
        sourceCollection:IReadOnlyObservableSet<IVsHierarchyItem> * 
        includeInFilter:Predicate<IVsHierarchyItem> * 
        cancellationToken:CancellationToken * 
        dependentProperties:int[] -> Task<IFilteredHierarchyItemSet> 
function GetFilteredHierarchyItemsAsync(
    sourceCollection : IReadOnlyObservableSet<IVsHierarchyItem>, 
    includeInFilter : Predicate<IVsHierarchyItem>, 
    cancellationToken : CancellationToken, 
    ... dependentProperties : int[]
) : Task<IFilteredHierarchyItemSet>

Parameters

  • 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.

.NET Framework Security

See Also

Reference

IVsHierarchyItemCollectionProvider Interface

Microsoft.VisualStudio.Shell Namespace