This documentation is archived and is not being maintained.

StandardBindingCollectionElement.TryAdd Method

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
)
protected boolean TryAdd (
	String name, 
	Binding binding, 
	Configuration config
)
protected internal override function TryAdd (
	name : String, 
	binding : Binding, 
	config : Configuration
) : boolean
Not applicable.

Parameters

name

The name of the binding to be added.

binding

A Binding object that represents the binding to be added.

config

The configuration settings of this binding.

Return Value

true if the binding can be added to this collection; otherwise, false.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: