FederationConfiguration Constructor (Boolean)
Initializes a new instance of the FederationConfiguration class by optionally loading settings from the system.identityModel.services section of the configuration file.
Assembly: System.IdentityModel.Services (in System.IdentityModel.Services.dll)
The system.identityModel configuration section is not defined in the configuration file.
The system.identityModel section must be specified in a <section> element under the <configSections> element in the configuration file or an exception is thrown.
<configSections> <section name="system.identityModel" type="System.IdentityModel.Configuration.SystemIdentityModelSection, System.IdentityModel, Version=126.96.36.199, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> </configSections>
If loadConfig is true and only a single <federationConfiguration> element is specified, settings are loaded using that element. If multiple <federationConfiguration> elements are specified, the method attempts to load settings from the element that is unnamed of that has the DefaultFederationConfigurationName. If such an element does not exist, the method returns without loading settings. This results in an exception when the Initialize method is called.
Microsoft recommends that if you specify multiple <federationConfiguration> elements in the system.identityModel.services configuration section that at least one of them is unnamed or has its name set to an empty string.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.