Condividi tramite


DuplexClientBase<TChannel> Constructor (InstanceContext, Binding, EndpointAddress)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object, binding, and service endpoint address.

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel.Extensions (in System.ServiceModel.Extensions.dll)

Syntax

'Declaration
Protected Sub New ( _
    callbackInstance As InstanceContext, _
    binding As Binding, _
    remoteAddress As EndpointAddress _
)
protected DuplexClientBase(
    InstanceContext callbackInstance,
    Binding binding,
    EndpointAddress remoteAddress
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The callback instance is nulla null reference (Nothing in Visual Basic).

ArgumentNullException

The binding is nulla null reference (Nothing in Visual Basic).

ArgumentNullException

The address is nulla null reference (Nothing in Visual Basic).

Remarks

The callbackInstance provided by the user is used to service all callback operations.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.