QueueClient.Create Method

Definition

Overloads

Create(String)

Creates a new copy of QueueClient with specified path.

Create(String, ReceiveMode)

Creates a new copy of QueueClient with specified path and mode.

Create(String)

Creates a new copy of QueueClient with specified path.

public static Microsoft.ServiceBus.Messaging.QueueClient Create (string path);
Parameters
path
String

The path.

Returns

The created QueueClient.

Remarks

This method will attempt to retrieve the connection string information from either app.config, or web.config files. User must supply the connection string using the "AppSettings" section of the configuration. The format of the section is as follows:

        <pre><code><appSettings><!-- Service Bus specific app setings for messaging connections --><add key="Microsoft.ServiceBus.ConnectionString" value="Endpoint=sb://[your namespace].servicebus.windows.net;SharedSecretIssuer=owner;SharedSecretValue=[your secret]"></add></appSettings></code></pre>

Create(String, ReceiveMode)

Creates a new copy of QueueClient with specified path and mode.

public static Microsoft.ServiceBus.Messaging.QueueClient Create (string path, Microsoft.ServiceBus.Messaging.ReceiveMode mode);
Parameters
path
String

The path.

mode
ReceiveMode

The mode.

Returns

The created QueueClient.

Remarks

This method will attempt to retrieve the connection string information from either app.config, or web.config files. User must supply the connection string using the "AppSettings" section of the configuration. The format of the section is as follows:

        <pre><code><appSettings><!-- Service Bus specific app setings for messaging connections --><add key="Microsoft.ServiceBus.ConnectionString" value="Endpoint=sb://[your namespace].servicebus.windows.net;SharedSecretIssuer=owner;SharedSecretValue=[your secret]"></add></appSettings></code></pre>