Compartilhar via


IChildrenSource2.GetCollectionAsync(CancellationToken) Method

Definition

Gets the collection of children nodes.

public:
 System::Threading::Tasks::Task<System::Collections::Generic::IReadOnlyCollection<Microsoft::VisualStudio::Workspace::VSIntegration::UI::WorkspaceVisualNodeBase ^> ^> ^ GetCollectionAsync(System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.VSIntegration.UI.WorkspaceVisualNodeBase>> GetCollectionAsync (System.Threading.CancellationToken cancellationToken);
abstract member GetCollectionAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.VSIntegration.UI.WorkspaceVisualNodeBase>>
Public Function GetCollectionAsync (cancellationToken As CancellationToken) As Task(Of IReadOnlyCollection(Of WorkspaceVisualNodeBase))

Parameters

cancellationToken
CancellationToken

Token for cancelling the asynchronous task.

Returns

A task that completes when the operation is done.

Remarks

Implementations of this method should be free-threaded, i.e. callers of this method should be able to call it from any thread.

Applies to