TopicsOperationsExtensions.CreateOrUpdateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create a topic.
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)
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET