TopicOperationsExtensions.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 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.