ContainsKey Method
Collapse the table of content
Expand the table of content

ServiceModelConfigurationElementCollection<ConfigurationElementType>.ContainsKey Method (Object)

 

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:
© 2016 Microsoft