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

TopicsOperationsExtensions.RegenerateKeyAsync 方法

定义

重新生成主题的密钥。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.EventGrid.Models.TopicSharedAccessKeys> RegenerateKeyAsync (this Microsoft.Azure.Management.EventGrid.ITopicsOperations operations, string resourceGroupName, string topicName, string keyName, System.Threading.CancellationToken cancellationToken = default);
static member RegenerateKeyAsync : Microsoft.Azure.Management.EventGrid.ITopicsOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.EventGrid.Models.TopicSharedAccessKeys>
<Extension()>
Public Function RegenerateKeyAsync (operations As ITopicsOperations, resourceGroupName As String, topicName As String, keyName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TopicSharedAccessKeys)

参数

operations
ITopicsOperations

此扩展方法的操作组。

resourceGroupName
String

用户订阅中的资源组的名称。

topicName
String

主题名称。

keyName
String

用于重新生成 key1 或 key2 的密钥名称

cancellationToken
CancellationToken

取消标记。

返回

注解

为主题重新生成共享访问密钥。

适用于