StandardBindingCollectionElement<TStandardBinding,TBindingConfiguration>.TryAdd(String, Binding, Configuration) StandardBindingCollectionElement<TStandardBinding,TBindingConfiguration>.TryAdd(String, Binding, Configuration) StandardBindingCollectionElement<TStandardBinding,TBindingConfiguration>.TryAdd(String, Binding, Configuration) Method

Definition

Adds the specified binding to the collection.

protected public:
 override bool TryAdd(System::String ^ name, System::ServiceModel::Channels::Binding ^ binding, System::Configuration::Configuration ^ config);
protected internal override bool TryAdd (string name, System.ServiceModel.Channels.Binding binding, System.Configuration.Configuration config);
override this.TryAdd : string * System.ServiceModel.Channels.Binding * System.Configuration.Configuration -> bool

Parameters

name
String String String

The name of the binding to be added.

binding
Binding Binding Binding

A Binding object that represents the binding to be added.

config
Configuration Configuration Configuration

The configuration settings of this binding.

Returns

true if the binding can be added to this collection; otherwise, false.

Applies to