StandardBindingCollectionElement<TStandardBinding, TBindingConfiguration>.TryAdd Method (String, Binding, Configuration)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Adds the specified binding to the collection.

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

protected internal override bool TryAdd(
	string name,
	Binding binding,
	Configuration config
)

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 binding can be added to this collection; otherwise, false.

.NET Framework
Available since 3.0
Return to top
Show: