你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ResourceOperationsExtensions.ListAsync 方法

定义

获取订阅下的所有资源。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Resources.Models.ResourceListResult> ListAsync (this Microsoft.Azure.Management.Resources.IResourceOperations operations, Microsoft.Azure.Management.Resources.Models.ResourceListParameters parameters);
static member ListAsync : Microsoft.Azure.Management.Resources.IResourceOperations * Microsoft.Azure.Management.Resources.Models.ResourceListParameters -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Resources.Models.ResourceListResult>
<Extension()>
Public Function ListAsync (operations As IResourceOperations, parameters As ResourceListParameters) As Task(Of ResourceListResult)

参数

operations
IResourceOperations

对 Microsoft.Azure.Management.Resources.IResourceOperations 的引用。

parameters
ResourceListParameters

可选。 查询参数。 如果传递了 null,则返回所有资源组。

返回

资源组列表。

适用于