QueueClient.Create 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.
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);
static member Create : string -> Microsoft.ServiceBus.Messaging.QueueClient
Public Shared Function Create (path As String) As QueueClient
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:
Applies to
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);
static member Create : string * Microsoft.ServiceBus.Messaging.ReceiveMode -> Microsoft.ServiceBus.Messaging.QueueClient
Public Shared Function Create (path As String, mode As ReceiveMode) As QueueClient
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: