IChildrenSource2.GetCollectionAsync(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.