SALES: 1-800-867-1380

ServiceBusEnvironment.CreateServiceUri Method (String, String, String, Boolean)

Constructs the Windows Azure Service Bus URI for an application, using the specified scheme, name, service path, and relayed path prefix.

Namespace:  Microsoft.ServiceBus
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

public static Uri CreateServiceUri(
	string scheme,
	string serviceNamespace,
	string servicePath,
	bool suppressRelayPathPrefix
)

Parameters

scheme
Type: System.String
The scheme of the URI.
serviceNamespace
Type: System.String
The name used by the application.
servicePath
Type: System.String
The service path that follows the host name section of the URI.
suppressRelayPathPrefix
Type: System.Boolean
True if the relay path prefix is suppressed; otherwise, false.

Return Value

Type: System.Uri
Returns a Uri that contains the new URI.

Service Bus endpoint URIs must always use the “sb://” protocol; for example sb://contoso.servicebus.windows.net/helloservicebus.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft