共用方式為


IVsHierarchyItemCollectionProvider.GetFilteredHierarchyItemsAsync Method

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

Syntax

'宣告
Function GetFilteredHierarchyItemsAsync ( _
    sourceCollection As IReadOnlyObservableSet(Of IVsHierarchyItem), _
    includeInFilter As Predicate(Of IVsHierarchyItem), _
    cancellationToken As CancellationToken, _
    ParamArray dependentProperties As Integer() _
) As Task<(Of <<'(IFilteredHierarchyItemSet>)>>)
Task<(Of <<'(IFilteredHierarchyItemSet>)>>) GetFilteredHierarchyItemsAsync(
    IReadOnlyObservableSet<IVsHierarchyItem> sourceCollection,
    Predicate<IVsHierarchyItem> includeInFilter,
    CancellationToken cancellationToken,
    params int[] dependentProperties
)

Parameters

Return Value

Type: System.Threading.Tasks.Task<IFilteredHierarchyItemSet>

.NET Framework Security

See Also

Reference

IVsHierarchyItemCollectionProvider Interface

Microsoft.VisualStudio.Shell Namespace