ClientBase<TChannel> Constructor (Binding, EndpointAddress)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Initializes a new instance of the ClientBase<TChannel> class using a specified binding and target address.
Namespace: System.ServiceModel
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Syntax
'Declaration
Protected Sub New ( _
binding As Binding, _
remoteAddress As EndpointAddress _
)
protected ClientBase(
Binding binding,
EndpointAddress remoteAddress
)
Parameters
- binding
Type: System.ServiceModel.Channels.Binding
The binding used to configure the way that calls are made to the service.
- remoteAddress
Type: System.ServiceModel.EndpointAddress
The address of the service endpoint.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The binding is nulla null reference (Nothing in Visual Basic). |
ArgumentNullException | The remote address is nulla null reference (Nothing in Visual Basic). |
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
XNA Framework
Supported in: Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
See Also