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

EventHubsOperationsExtensions.CreateOrUpdateAsync 方法

定义

创建或更新一个新的事件中心作为命名空间中的嵌套资源。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.EventHub.Fluent.Models.EventhubInner> CreateOrUpdateAsync (this Microsoft.Azure.Management.EventHub.Fluent.IEventHubsOperations operations, string resourceGroupName, string namespaceName, string eventHubName, Microsoft.Azure.Management.EventHub.Fluent.Models.EventhubInner parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.EventHub.Fluent.IEventHubsOperations * string * string * string * Microsoft.Azure.Management.EventHub.Fluent.Models.EventhubInner * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.EventHub.Fluent.Models.EventhubInner>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IEventHubsOperations, resourceGroupName As String, namespaceName As String, eventHubName As String, parameters As EventhubInner, Optional cancellationToken As CancellationToken = Nothing) As Task(Of EventhubInner)

参数

operations
IEventHubsOperations

此扩展方法的操作组。

resourceGroupName
String

Azure 订阅中资源组的名称。

namespaceName
String

命名空间名称

eventHubName
String

事件中心名称

parameters
EventhubInner

提供用于创建事件中心资源的参数。

cancellationToken
CancellationToken

取消标记。

返回

适用于