BindingCollectionElement::TryAdd Method (String^, Binding^, Configuration^)

 

Adds the specified binding to the collection.

Namespace:   System.ServiceModel.Configuration
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public protected:
virtual bool TryAdd(
	String^ name,
	Binding^ binding,
	Configuration^ config
) abstract

Parameters

name
Type: System::String^

The name of the binding to be added.

binding
Type: System.ServiceModel.Channels::Binding^

A Binding object that represents the binding to be added.

config
Type: System.Configuration::Configuration^

The configuration settings of this binding.

Return Value

Type: System::Boolean

true if the operation completed successfully; otherwise, false.

.NET Framework
Available since 3.0
Return to top
Show: