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

AccountsOperationsExtensions.CreateAsync 方法

定义

创建认知服务帐户。 帐户是资源组范围的资源类型。 它保存供开发人员访问智能 API 的密钥。 它也是用于计费的资源类型。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.CognitiveServices.Models.Account> CreateAsync (this Microsoft.Azure.Management.CognitiveServices.IAccountsOperations operations, string resourceGroupName, string accountName, Microsoft.Azure.Management.CognitiveServices.Models.Account account, System.Threading.CancellationToken cancellationToken = default);
static member CreateAsync : Microsoft.Azure.Management.CognitiveServices.IAccountsOperations * string * string * Microsoft.Azure.Management.CognitiveServices.Models.Account * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.CognitiveServices.Models.Account>
<Extension()>
Public Function CreateAsync (operations As IAccountsOperations, resourceGroupName As String, accountName As String, account As Account, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Account)

参数

operations
IAccountsOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。 此名称不区分大小写。

accountName
String

认知服务帐户的名称。

account
Account

要为创建的帐户提供的参数。

cancellationToken
CancellationToken

取消标记。

返回

适用于