ITopicOperations.CreateAsync 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.
Creates a new topic. Once created, this topic resource manifest is immutable. This operation is not idempotent. Repeating the create call, after a topic with same name has been created successfully, will result in a 409 Conflict error message. (see http://msdn.microsoft.com/en-us/library/windowsazure/hh780728.aspx for more information)
public System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.ServiceBus.Models.ServiceBusTopicResponse> CreateAsync (string namespaceName, Microsoft.WindowsAzure.Management.ServiceBus.Models.ServiceBusTopic topic, System.Threading.CancellationToken cancellationToken);
abstract member CreateAsync : string * Microsoft.WindowsAzure.Management.ServiceBus.Models.ServiceBusTopic * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.ServiceBus.Models.ServiceBusTopicResponse>
Public Function CreateAsync (namespaceName As String, topic As ServiceBusTopic, cancellationToken As CancellationToken) As Task(Of ServiceBusTopicResponse)
Parameters
- namespaceName
- String
The namespace name.
- topic
- ServiceBusTopic
The Service Bus topic.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
A response to a request for a particular topic.
Applies to
Azure SDK for .NET