Share via


IVsHierarchyItemCollectionProvider.GetDescendantsAsync Method

Asynchronously gets a flat list of hierarchy items that exist within the specified hierarchy.

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

Syntax

'Declaration
Function GetDescendantsAsync ( _
    hierarchy As IVsHierarchy, _
    cancellationToken As CancellationToken _
) As Task(Of IReadOnlyObservableSet(Of IVsHierarchyItem))
Task<IReadOnlyObservableSet<IVsHierarchyItem>> GetDescendantsAsync(
    IVsHierarchy hierarchy,
    CancellationToken cancellationToken
)
Task<IReadOnlyObservableSet<IVsHierarchyItem^>^>^ GetDescendantsAsync(
    IVsHierarchy^ hierarchy, 
    CancellationToken cancellationToken
)
abstract GetDescendantsAsync : 
        hierarchy:IVsHierarchy * 
        cancellationToken:CancellationToken -> Task<IReadOnlyObservableSet<IVsHierarchyItem>> 
function GetDescendantsAsync(
    hierarchy : IVsHierarchy, 
    cancellationToken : CancellationToken
) : Task<IReadOnlyObservableSet<IVsHierarchyItem>>

Parameters

Return Value

Type: System.Threading.Tasks.Task<IReadOnlyObservableSet<IVsHierarchyItem>>
A task that, when complete, provides the flattened set of hierarchy items.

Remarks

The set returned is kept up to date as the hierarchy changes.

.NET Framework Security

See Also

Reference

IVsHierarchyItemCollectionProvider Interface

Microsoft.VisualStudio.Shell Namespace