Udostępnij za pośrednictwem


ITopicOperations.CreateAsync Method

Definition

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