A binding element that can be added to a client application to take advantage of the Discovery client channel. The Discovery client channel allows a client application to access a discoverable service without knowing the endpoint address in advance.
Assembly: System.ServiceModel.Discovery (in System.ServiceModel.Discovery.dll)
Thetype exposes the following members.
|DiscoveryClientBindingElement()||Initializes a new instance of the class with default values.|
|DiscoveryClientBindingElement(DiscoveryEndpointProvider, FindCriteria)||Initializes a new instance of the class with the specified endpoint provider and service finding criteria.|
|BuildChannelFactory<TChannel>||Initializes a channel factory for producing channels of a specific type from the binding context. (Overrides BindingElement.BuildChannelFactory<TChannel>(BindingContext).)|
|BuildChannelListener<TChannel>||Building a channel listener is not supported by the Discovery client channel. This method can be overridden to initialize a channel listener to accept channels of a specified type from the binding context. (Overrides BindingElement.BuildChannelListener<TChannel>(BindingContext).)|
|CanBuildChannelFactory<TChannel>||Returns a value that indicates whether the current binding can build a channel factory stack on the client. (Overrides BindingElement.CanBuildChannelFactory<TChannel>(BindingContext).)|
|CanBuildChannelListener<TChannel>||Because building a channel listener is not supported by the Discovery client channel, this method always returns false. It may be extended to return a value that indicates whether the binding element can build a listener for a specific type of channel. (Overrides BindingElement.CanBuildChannelListener<TChannel>(BindingContext).)|
|Clone||Creates a copy of the binding element. (Overrides BindingElement.Clone().)|
|Equals(Object)||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetProperty<T>||Returns an object of the requested type, if present in the binding stack. (Overrides BindingElement.GetProperty<T>(BindingContext).)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
The Discovery client channel is used by creating a custom binding element and adding a to the top of the binding stack. For more information about the Discovery client channel, see Using the Discovery Client Channel.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2