Language

AddRelayConfiguration Method

Adds the entries of the current instance to the specified configuration.

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

Syntax

'Declaration
Public Shared Sub AddRelayConfiguration ( _
    configuration As Configuration _
)
'Usage
Dim configuration As Configuration

RelayConfigurationInstaller.AddRelayConfiguration(configuration)
public static void AddRelayConfiguration(
    Configuration configuration
)
public:
static void AddRelayConfiguration(
    Configuration^ configuration
)
static member AddRelayConfiguration : 
        configuration:Configuration -> unit 
public static function AddRelayConfiguration(
    configuration : Configuration
)

Parameters

Exceptions

Exception Condition
[ConfigurationErrorsException]

A valid configuration file could not be loaded.

Remarks

AddRelayConfiguration(Configuration) adds the entries to the specified configuration object to allow an application that is using that configuration to use ServiceBus elements in its config file.

The parameter values for configuration would likely a Machine.config or App.config file. If a Machine.config file, then every application on the computer will be able to access the Windows Azure Service Bus configuration information. However, this would require Administration privileges. If the target is an App.config file, then only that application would have access to the Windows Azure Service Bus configuration elements. However, targeting an App.config file requires less security.

See Also

Reference

RelayConfigurationInstaller Class

Microsoft.ServiceBus.Configuration Namespace