ServiceModelConfigurationElementCollection<ConfigurationElementType>.ContainsKey Method (Object)

 
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.

Returns a boolean value that indicates whether this collection contains a configuration element with the specified key.

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

public virtual bool ContainsKey(
	object key
)

Parameters

key
Type: System.Object

The configuration element to search for in the collection.

Return Value

Type: System.Boolean

true if the collection contains a configuration element with the specified key; otherwise, false.

Exception Condition
ArgumentNullException

key is null or empty.

.NET Framework
Available since 3.0
Return to top
Show: