BdcClientBase<TChannel> Constructor (InstanceContext, String)
Initializes a new instance of the BdcClientBase<TChannel> class using the specified callback instance and endpoint configuration name.
Namespace: Microsoft.BusinessData.SystemSpecific.Wcf
Assembly: Microsoft.BusinessData (in Microsoft.BusinessData.dll)
Syntax
'Declaration
Protected Sub New ( _
callbackInstance As InstanceContext, _
endpointConfigurationName As String _
)
'Usage
Dim callbackInstance As InstanceContext
Dim endpointConfigurationName As String
Dim instance As New BdcClientBase(callbackInstance, _
endpointConfigurationName)
protected BdcClientBase(
InstanceContext callbackInstance,
string endpointConfigurationName
)
Parameters
callbackInstance
Type: System.ServiceModel.InstanceContextThe callback object that the client application uses to listen for messages from the connected service.
endpointConfigurationName
Type: System.StringThe name of the endpoint in the application configuration file.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The callbackInstance or endpointConfigurationName is a null reference (Nothing in Visual Basic). |
InvalidOperationException | The endpoint cannot be found or the endpoint contract is not valid. |
See Also
Reference
BdcClientBase<TChannel> Members