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

TopicsOperationsExtensions.CreateOrUpdateAsync 方法

定义

创建主题。

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

参数

operations
ITopicsOperations

此扩展方法的操作组。

resourceGroupName
String

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

topicName
String

主题名称。

topicInfo
Topic

主题信息。

cancellationToken
CancellationToken

取消标记。

返回

注解

使用指定的参数异步创建新主题。

适用于