Dela via


NamespaceManager.CreateRelayAsync Method

Definition

Overloads

CreateRelayAsync(RelayDescription)

Asynchronously creates a new relay in the service namespace with the specified relay description.

CreateRelayAsync(String, RelayType)

Asynchronously creates a new relay in the service namespace with the given path and type.

CreateRelayAsync(RelayDescription)

Asynchronously creates a new relay in the service namespace with the specified relay description.

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.RelayDescription> CreateRelayAsync (Microsoft.ServiceBus.Messaging.RelayDescription description);
member this.CreateRelayAsync : Microsoft.ServiceBus.Messaging.RelayDescription -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.RelayDescription>
Public Function CreateRelayAsync (description As RelayDescription) As Task(Of 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

CreateRelayAsync(String, RelayType)

Asynchronously creates a new relay in the service namespace with the given path and type.

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.RelayDescription> CreateRelayAsync (string path, Microsoft.ServiceBus.RelayType type);
member this.CreateRelayAsync : string * Microsoft.ServiceBus.RelayType -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.RelayDescription>
Public Function CreateRelayAsync (path As String, type As RelayType) As Task(Of 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.

Applies to