IVsHierarchyItemCollectionProvider::GetDescendantsAsync Method (IVsHierarchy^, CancellationToken)

 

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)

Task<IReadOnlyObservableSet<IVsHierarchyItem^>^>^ GetDescendantsAsync(
	IVsHierarchy^ hierarchy,
	CancellationToken cancellationToken
)

Parameters

hierarchy
Type: Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^

The hierarchy from which the descendant hierarchy items are aggregated.

cancellationToken
Type: System.Threading::CancellationToken

A cancellation token that can be used to cancel the asynchronous request.

Return Value

Type: System.Threading.Tasks::Task<IReadOnlyObservableSet<IVsHierarchyItem^>^>^

A task that, when complete, provides the flattened set of hierarchy items.

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

Return to top
Show: