Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

NetEventRelayBindingCollectionElement Class

Represents a configuration element that holds a collection of NetEventRelayBindingElement instances.

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

public class NetEventRelayBindingCollectionElement : StandardBindingCollectionElement<NetEventRelayBinding, NetEventRelayBindingElement>

The NetEventRelayBindingCollectionElement type exposes the following members.

Public methodNetEventRelayBindingCollectionElementInitializes a new instance of the NetEventRelayBindingCollectionElement class.

Public methodContainsKey (Inherited from StandardBindingCollectionElement<NetEventRelayBinding, NetEventRelayBindingElement>.)
Protected methodDeserializeElement (Inherited from ConfigurationElement.)
Public methodEquals (Inherited from ConfigurationElement.)
Protected methodFinalize (Inherited from Object.)
Protected methodGetDefault (Inherited from StandardBindingCollectionElement<NetEventRelayBinding, NetEventRelayBindingElement>.)
Public methodGetHashCode (Inherited from ConfigurationElement.)
Protected methodGetTransformedAssemblyString (Inherited from ConfigurationElement.)
Protected methodGetTransformedTypeString (Inherited from ConfigurationElement.)
Public methodGetType (Inherited from Object.)
Protected methodInit (Inherited from ConfigurationElement.)
Protected methodInitializeDefault (Inherited from ConfigurationElement.)
Protected methodIsModified (Inherited from ConfigurationElement.)
Public methodIsReadOnly (Inherited from ConfigurationElement.)
Protected methodListErrors (Inherited from ConfigurationElement.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnDeserializeUnrecognizedAttribute (Inherited from ConfigurationElement.)
Protected methodOnDeserializeUnrecognizedElement (Inherited from ConfigurationElement.)
Protected methodOnRequiredPropertyNotFound (Inherited from ConfigurationElement.)
Protected methodPostDeserialize (Inherited from ConfigurationElement.)
Protected methodPreSerialize (Inherited from ConfigurationElement.)
Protected methodReset (Inherited from ConfigurationElement.)
Protected methodResetModified (Inherited from ConfigurationElement.)
Protected methodSerializeElement (Inherited from ConfigurationElement.)
Protected methodSerializeToXmlElement (Inherited from ConfigurationElement.)
Protected methodSetPropertyValue (Inherited from ConfigurationElement.)
Protected methodSetReadOnly (Inherited from ConfigurationElement.)
Public methodToString (Inherited from Object.)
Protected methodTryAdd (Inherited from StandardBindingCollectionElement<NetEventRelayBinding, NetEventRelayBindingElement>.)
Protected methodUnmerge (Inherited from ConfigurationElement.)

Windows Azure Service Bus supports only Full Trust code access security.

You can choose to configure a NetEventRelayBinding either programmatically, or else in your App.config file. You may also choose to have multiple configurations for different endpoints. When Windows Azure Service Bus reads through your App.config file, it uses NetEventRelayBindingCollectionElement to collect those individual binding configurations and apply them into their respective endpoints.

Therefore, you will likely not use NetEventRelayBindingCollectionElement in most scenarios. Instead, Windows Azure Service Bus will use this type indirectly if you ever create multiple bindings in your App.config file.

However, if you choose to create a custom binding, you may wish to store your custom binding elements in your App.config file as well. If you based your custom binding off of NetEventRelayBinding, you may need to modify this type in order to allow other users to use the App.config file to configure your binding. For more information about custom bindings, see Creating a Custom AppFabric Service Bus Binding. For more information on configuring an Windows Azure Service Bus binding, see Configuring an AppFabric Service Bus Application.

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

Community Additions

© 2015 Microsoft