Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ServiceBusEnvironment Class
Collapse the table of content
Expand the table of content

ServiceBusEnvironment Class


Describes the Service Bus environment.

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


public static class ServiceBusEnvironment


Gets the default host name for the Access Control Service.


Gets the singleton ConnectivitySettings instance that holds the connectivity settings for TCP and HTTP-based endpoints.


Creates a URI string to use with access control for the specified service namespace.

System_CAPS_pubmethodSystem_CAPS_staticCreateServiceUri(String, String, String)

Constructs the Service Bus URI for an application, using the specified scheme, service namespace, and service path.

System_CAPS_pubmethodSystem_CAPS_staticCreateServiceUri(String, String, String, Boolean)

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

Azure Service Bus supports only Full Trust code access security.

This class provides information about the current host names for Service Bus and Access Control endpoints and to the globally effective ConnectivitySettings for all binding-based endpoints that are active in the current application domain.


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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
© 2015 Microsoft