Sdílet prostřednictvím


StandardBindingCollectionElement<TStandardBinding,TBindingConfiguration>.TryAdd Metoda

Definice

Přidá zadanou vazbu do kolekce.

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
Protected Friend Overrides Function TryAdd (name As String, binding As Binding, config As Configuration) As Boolean

Parametry

name
String

Název vazby, která se má přidat.

binding
Binding

Objekt, Binding který představuje vazbu, která má být přidána.

config
Configuration

Nastavení konfigurace této vazby.

Návraty

Boolean

true pokud lze do této kolekce přidat vazbu; v opačném případě false .

Platí pro