IWcfBindingProvider.CreateBinding Method
Creates and returns a binding that will be used by BDC to connect to the Web service.
Namespace: Microsoft.BusinessData.SystemSpecific.Wcf
Assembly: Microsoft.BusinessData (in Microsoft.BusinessData.dll)
Syntax
'Declaration
Function CreateBinding ( _
lobSystemInstance As ILobSystemInstance, _
existingBinding As Binding _
) As Binding
'Usage
Dim instance As IWcfBindingProvider
Dim lobSystemInstance As ILobSystemInstance
Dim existingBinding As Binding
Dim returnValue As Binding
returnValue = instance.CreateBinding(lobSystemInstance, _
existingBinding)
Binding CreateBinding(
ILobSystemInstance lobSystemInstance,
Binding existingBinding
)
Parameters
lobSystemInstance
Type: Microsoft.BusinessData.MetadataModel.ILobSystemInstanceThe external system instance object for which BDC is connecting to the Web service.
existingBinding
Type: System.ServiceModel.Channels.BindingThe existing binding that BDC would have used to connect to the Web service.
Return Value
Type: System.ServiceModel.Channels.Binding
A binding combined with a supplied implementation ClientBase and Endpoint address URI.
Remarks
Instances of objects in the Business Data Connectivity object model are tied to the Metadata Store they are obtained from. Using instances tied to one Metadata Store with the instances from another Metadata Store will cause data corruption and other unexpected behavior. For more information, see DatabaseBackedMetadataCatalog, FileBackedMetadataCatalog, and RemoteSharedFileBackedMetadataCatalog.