共用方式為


WorkspacesOperationsExtensions.ListByResourceGroupAsync 方法

定義

取得指定資源群組內的工作區清單。

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

參數

operations
IWorkspacesOperations

這個擴充方法的作業群組。

resourceGroupName
String

資源所屬資源群組的名稱。

workspacesListByResourceGroupOptions
WorkspacesListByResourceGroupOptions

作業的其他參數

cancellationToken
CancellationToken

取消語彙基元。

傳回

適用於