StandardBindingCollectionElement<TStandardBinding,TBindingConfiguration>.TryAdd(String, Binding, Configuration) Método

Definição

Adiciona a associação especificada à coleção.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
Protected Friend Overrides Function TryAdd (name As String, binding As Binding, config As Configuration) As Boolean

Parâmetros

name
String

O nome da associação a ser adicionada.The name of the binding to be added.

binding
Binding

Um objeto Binding que representa a associação a ser adicionada.A Binding object that represents the binding to be added.

config
Configuration

As definições de configuração desta associação.The configuration settings of this binding.

Retornos

Boolean

true se a associação puder ser adicionada a esta coleção; caso contrário, false.true if the binding can be added to this collection; otherwise, false.

Aplica-se a