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
- sourceCollection
Type: Microsoft.VisualStudio.Shell.IReadOnlyObservableSet<IVsHierarchyItem>
- includeInFilter
Type: System.Predicate<IVsHierarchyItem>
- cancellationToken
Type: System.Threading.CancellationToken
- dependentProperties
Type: array<System.Int32[]
Return Value
Type: System.Threading.Tasks.Task<IFilteredHierarchyItemSet>
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.