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

TemplateSpecsOperationsExtensions.ListBySubscriptionAsync 方法

定义

列出指定订阅中的所有模板规格。

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ResourceManager.Models.TemplateSpec>> ListBySubscriptionAsync (this Microsoft.Azure.Management.ResourceManager.ITemplateSpecsOperations operations, string expand = default, System.Threading.CancellationToken cancellationToken = default);
static member ListBySubscriptionAsync : Microsoft.Azure.Management.ResourceManager.ITemplateSpecsOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ResourceManager.Models.TemplateSpec>>
<Extension()>
Public Function ListBySubscriptionAsync (operations As ITemplateSpecsOperations, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of TemplateSpec))

参数

operations
ITemplateSpecsOperations

此扩展方法的操作组。

expand
String

允许在响应中扩展其他模板规格详细信息。 可选。 可能的值包括:“versions”

cancellationToken
CancellationToken

取消标记。

返回

适用于