StandardBindingCollectionElement<TStandardBinding,TBindingConfiguration>.TryAdd Method

Definition

Adds the specified binding to the collection.

C#
protected internal override bool TryAdd(string name, System.ServiceModel.Channels.Binding binding, System.Configuration.Configuration config);

Parameters

name
String

The name of the binding to be added.

binding
Binding

A Binding object that represents the binding to be added.

config
Configuration

The configuration settings of this binding.

Returns

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

Applies to

Produit Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1