Sdílet prostřednictvím


TopicsOperationsExtensions.BeginCreateOrUpdateAsync Method

Definition

Create a topic.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.EventGrid.Models.Topic> BeginCreateOrUpdateAsync (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 BeginCreateOrUpdateAsync : 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 BeginCreateOrUpdateAsync (operations As ITopicsOperations, resourceGroupName As String, topicName As String, topicInfo As Topic, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Topic)

Parameters

operations
ITopicsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group within the user's subscription.

topicName
String

Name of the topic.

topicInfo
Topic

Topic information.

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

Asynchronously creates a new topic with the specified parameters.

Applies to