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

CustomLocationResource.GetEnabledResourceTypesAsync(CancellationToken) 方法

定义

获取已启用的资源类型的列表。 请求路径:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/enabledResourceTypes 操作 ID:CustomLocations_ListEnabledResourceTypes

public virtual Azure.AsyncPageable<Azure.ResourceManager.ExtendedLocation.Models.EnabledResourceType> GetEnabledResourceTypesAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetEnabledResourceTypesAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ExtendedLocation.Models.EnabledResourceType>
override this.GetEnabledResourceTypesAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ExtendedLocation.Models.EnabledResourceType>
Public Overridable Function GetEnabledResourceTypesAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of EnabledResourceType)

参数

cancellationToken
CancellationToken

要使用的取消标记。

返回

的异步集合 EnabledResourceType ,可能需要循环访问多个服务请求。

适用于