BindingCollectionElement.TryAdd(String, Binding, Configuration) Methode

Definitie

Hiermee voegt u de opgegeven binding toe aan de verzameling.

protected public:
 abstract bool TryAdd(System::String ^ name, System::ServiceModel::Channels::Binding ^ binding, System::Configuration::Configuration ^ config);
protected internal abstract bool TryAdd(string name, System.ServiceModel.Channels.Binding binding, System.Configuration.Configuration config);
abstract member TryAdd : string * System.ServiceModel.Channels.Binding * System.Configuration.Configuration -> bool
Protected Friend MustOverride Function TryAdd (name As String, binding As Binding, config As Configuration) As Boolean

Parameters

name
String

De naam van de binding die moet worden toegevoegd.

binding
Binding

Een Binding object dat de binding vertegenwoordigt die moet worden toegevoegd.

config
Configuration

De configuratie-instellingen van deze binding.

Retouren

true indien de bewerking is voltooid; anders, false.

Van toepassing op