共用方式為


TopicOperationsExtensions.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 static System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.ServiceBus.Models.ServiceBusTopicResponse> CreateAsync (this Microsoft.WindowsAzure.Management.ServiceBus.ITopicOperations operations, string namespaceName, Microsoft.WindowsAzure.Management.ServiceBus.Models.ServiceBusTopic topic);
static member CreateAsync : Microsoft.WindowsAzure.Management.ServiceBus.ITopicOperations * string * Microsoft.WindowsAzure.Management.ServiceBus.Models.ServiceBusTopic -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.ServiceBus.Models.ServiceBusTopicResponse>
<Extension()>
Public Function CreateAsync (operations As ITopicOperations, namespaceName As String, topic As ServiceBusTopic) As Task(Of ServiceBusTopicResponse)

Parameters

operations
ITopicOperations

Reference to the Microsoft.WindowsAzure.Management.ServiceBus.ITopicOperations.

namespaceName
String

Required. The namespace name.

topic
ServiceBusTopic

Required. The Service Bus topic.

Returns

A response to a request for a particular topic.

Applies to