Editar

Compartilhar via


IEndpointBehavior.AddBindingParameters Method

Definition

Implement to pass data at runtime to bindings to support custom behavior.

public:
 void AddBindingParameters(System::ServiceModel::Description::ServiceEndpoint ^ endpoint, System::ServiceModel::Channels::BindingParameterCollection ^ bindingParameters);
public void AddBindingParameters (System.ServiceModel.Description.ServiceEndpoint endpoint, System.ServiceModel.Channels.BindingParameterCollection bindingParameters);
abstract member AddBindingParameters : System.ServiceModel.Description.ServiceEndpoint * System.ServiceModel.Channels.BindingParameterCollection -> unit
Public Sub AddBindingParameters (endpoint As ServiceEndpoint, bindingParameters As BindingParameterCollection)

Parameters

endpoint
ServiceEndpoint

The endpoint to modify.

bindingParameters
BindingParameterCollection

The objects that binding elements require to support the behavior.

Remarks

Implement the AddBindingParameters method to provide binding elements with the extra objects they require to support the endpoint behavior. When binding parameters are added here the binding can locate these objects when the channel listener or channel factory is created. Typically, you implement the AddBindingParameters method to pass information about the endpoint to a custom binding element so that it can build a supporting channel correctly. Return no value if no modifications are required.

Applies to