IdentityConfigurationElementCollection::GetElement Method (String^)
.NET Framework (current version)
Retrieves the IdentityConfigurationElement that has the specified name.
Assembly: System.IdentityModel (in System.IdentityModel.dll)
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
Available since 4.5
Show: