IdentityConfigurationElementCollection.GetElement Method (String)

.NET Framework (current version)
 

Retrieves the IdentityConfigurationElement that has the specified name.

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

public IdentityConfigurationElement GetElement(
	string name
)

Parameters

name
Type: System.String

The name of the identityConfiguration element to retrieve. This corresponds to the value of the element’s Name property.

Return Value

Type: System.IdentityModel.Configuration.IdentityConfigurationElement

The <identityConfiguration> element that has the specified name, or null if no matching element is found.

Exception Condition
ArgumentNullException

name is null.

InvalidOperationException

The default configuration was specified in the name parameter and a matching IdentityConfigurationElement could not be found.

.NET Framework
Available since 4.5
Return to top
Show: