NamespaceManager.CreateRelay 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
CreateRelay(RelayDescription) |
Creates a new relay in the service namespace with the specified relay description. |
CreateRelay(String, RelayType) |
Creates a new relay in the service namespace with the given path and type. |
CreateRelay(RelayDescription)
Creates a new relay in the service namespace with the specified relay description.
public Microsoft.ServiceBus.Messaging.RelayDescription CreateRelay (Microsoft.ServiceBus.Messaging.RelayDescription description);
member this.CreateRelay : Microsoft.ServiceBus.Messaging.RelayDescription -> Microsoft.ServiceBus.Messaging.RelayDescription
Public Function CreateRelay (description As RelayDescription) As RelayDescription
Parameters
- description
- RelayDescription
The description object describing the attributes with which the new relay will be created.
Returns
The RelayDescription object for the newly created relay.
Applies to
CreateRelay(String, RelayType)
Creates a new relay in the service namespace with the given path and type.
public Microsoft.ServiceBus.Messaging.RelayDescription CreateRelay (string path, Microsoft.ServiceBus.RelayType type);
member this.CreateRelay : string * Microsoft.ServiceBus.RelayType -> Microsoft.ServiceBus.Messaging.RelayDescription
Public Function CreateRelay (path As String, type As RelayType) As RelayDescription
Parameters
- path
- String
The path of the queue relative to the service namespace base address.
- type
- RelayType
The relay type.
Returns
The RelayDescription object for the newly created relay.