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

QueryKeysOperationsExtensions.Create 方法

定义

为指定的搜索服务生成新的查询键。 最多可为每个服务创建 50 个查询密钥。 https://aka.ms/search-manage

public static Microsoft.Azure.Management.Search.Models.QueryKey Create (this Microsoft.Azure.Management.Search.IQueryKeysOperations operations, string resourceGroupName, string searchServiceName, string name, Microsoft.Azure.Management.Search.Models.SearchManagementRequestOptions searchManagementRequestOptions = default);
static member Create : Microsoft.Azure.Management.Search.IQueryKeysOperations * string * string * string * Microsoft.Azure.Management.Search.Models.SearchManagementRequestOptions -> Microsoft.Azure.Management.Search.Models.QueryKey
<Extension()>
Public Function Create (operations As IQueryKeysOperations, resourceGroupName As String, searchServiceName As String, name As String, Optional searchManagementRequestOptions As SearchManagementRequestOptions = Nothing) As QueryKey

参数

operations
IQueryKeysOperations

此扩展方法的操作组。

resourceGroupName
String

当前订阅中资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

searchServiceName
String

与指定资源组关联的Azure 认知搜索服务的名称。

name
String

新查询 API 密钥的名称。

searchManagementRequestOptions
SearchManagementRequestOptions

操作的其他参数

返回

适用于