BindingCollectionElement.TryAdd(String, Binding, Configuration) Método
Definição
Adiciona a associação especificada à coleção.Adds the specified binding to the collection.
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
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
true se a operação foi concluída com êxito; caso contrário, false.true if the operation completed successfully; otherwise, false.