你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ISupportsListingByRegion<T>.ListByRegionAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ListByRegionAsync(Region, CancellationToken) |
列出指定区域中指定类型的所有资源。 |
ListByRegionAsync(String, CancellationToken) |
列出指定区域中指定类型的所有资源。 |
ListByRegionAsync(Region, CancellationToken)
列出指定区域中指定类型的所有资源。
public System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection<T>> ListByRegionAsync(Microsoft.Azure.Management.ResourceManager.Fluent.Core.Region region, System.Threading.CancellationToken cancellationToken = default);
abstract member ListByRegionAsync : Microsoft.Azure.Management.ResourceManager.Fluent.Core.Region * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection<'T>>
Public Function ListByRegionAsync (region As Region, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPagedCollection(Of T))
参数
- region
- Region
所选 Azure 区域
- cancellationToken
- CancellationToken
取消令牌
返回
Task<IPagedCollection<T>>
表示此调用的延迟计算,返回请求的资源
适用于
ListByRegionAsync(String, CancellationToken)
列出指定区域中指定类型的所有资源。
public System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection<T>> ListByRegionAsync(string region, System.Threading.CancellationToken cancellationToken = default);
abstract member ListByRegionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection<'T>>
Public Function ListByRegionAsync (region As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPagedCollection(Of T))
参数
- region
- String
所选 Azure 区域
- cancellationToken
- CancellationToken
取消令牌
返回
Task<IPagedCollection<T>>
表示此调用的延迟计算,返回请求的资源