Share via


WorkspacesOperationsExtensions.ListAsync Method

Definition

Gets a list of Workspaces associated with the given subscription.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.BatchAI.Models.Workspace>> ListAsync (this Microsoft.Azure.Management.BatchAI.IWorkspacesOperations operations, Microsoft.Azure.Management.BatchAI.Models.WorkspacesListOptions workspacesListOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member ListAsync : Microsoft.Azure.Management.BatchAI.IWorkspacesOperations * Microsoft.Azure.Management.BatchAI.Models.WorkspacesListOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.BatchAI.Models.Workspace>>
<Extension()>
Public Function ListAsync (operations As IWorkspacesOperations, Optional workspacesListOptions As WorkspacesListOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of Workspace))

Parameters

operations
IWorkspacesOperations

The operations group for this extension method.

workspacesListOptions
WorkspacesListOptions

Additional parameters for the operation

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to