IdentityConfiguration Constructors

Definition

Initializes a new instance of the IdentityConfiguration class.

Overloads

IdentityConfiguration()

Initializes a new instance of the IdentityConfiguration class. Settings are loaded from the default configuration, if it exists.

IdentityConfiguration(Boolean)

Initializes a new instance of the IdentityConfiguration class by using a value that specifies whether settings should be loaded from the default configuration.

IdentityConfiguration(X509Certificate2)

Initializes a new instance of the IdentityConfiguration class that has the specified service certificate.

IdentityConfiguration(String)

Initializes a new instance of the IdentityConfiguration class. Settings are loaded from the named configuration.

IdentityConfiguration(Boolean, X509Certificate2)

Initializes a new instance of the IdentityConfiguration class that has the specified service certificate. Settings are optionally loading the default configuration.

IdentityConfiguration(String, X509Certificate2)

Initializes a new instance of the IdentityConfiguration class that has the specified service certificate, loading the named configuration.

IdentityConfiguration()

Initializes a new instance of the IdentityConfiguration class. Settings are loaded from the default configuration, if it exists.

public:
 IdentityConfiguration();
public IdentityConfiguration ();
Public Sub New ()

Remarks

Property values are loaded from the unnamed <identityConfiguration> element in the configuration file, if such an element exists; otherwise, properties are set to their default values.

Applies to

IdentityConfiguration(Boolean)

Initializes a new instance of the IdentityConfiguration class by using a value that specifies whether settings should be loaded from the default configuration.

public:
 IdentityConfiguration(bool loadConfig);
public IdentityConfiguration (bool loadConfig);
new System.IdentityModel.Configuration.IdentityConfiguration : bool -> System.IdentityModel.Configuration.IdentityConfiguration
Public Sub New (loadConfig As Boolean)

Parameters

loadConfig
Boolean

true to load settings from the configuration file; otherwise false.

Exceptions

loadConfig is true, but there is no <system.identityModel> configuration element.

Remarks

If loadConfig is true, property values are loaded from the unnamed <identityConfiguration> element in the configuration file; otherwise properties are set to their default values.

Applies to

IdentityConfiguration(X509Certificate2)

Initializes a new instance of the IdentityConfiguration class that has the specified service certificate.

public:
 IdentityConfiguration(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ serviceCertificate);
public IdentityConfiguration (System.Security.Cryptography.X509Certificates.X509Certificate2 serviceCertificate);
new System.IdentityModel.Configuration.IdentityConfiguration : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.IdentityModel.Configuration.IdentityConfiguration
Public Sub New (serviceCertificate As X509Certificate2)

Parameters

serviceCertificate
X509Certificate2

The service certificate. Sets the ServiceCertificate property.

Remarks

Property values are loaded from the unnamed <identityConfiguration> element in the configuration file, if such an element exists; otherwise, properties are set to their default values.

Applies to

IdentityConfiguration(String)

Initializes a new instance of the IdentityConfiguration class. Settings are loaded from the named configuration.

public:
 IdentityConfiguration(System::String ^ identityConfigurationName);
public IdentityConfiguration (string identityConfigurationName);
new System.IdentityModel.Configuration.IdentityConfiguration : string -> System.IdentityModel.Configuration.IdentityConfiguration
Public Sub New (identityConfigurationName As String)

Parameters

identityConfigurationName
String

The name of the <identityConfiguration> element from which settings are to be loaded.

Exceptions

There is no <system.identityModel> configuration element.

Remarks

If this constructor is called then a System.IdentityModel configuration section with the provided name must exist in the configuration file.

Applies to

IdentityConfiguration(Boolean, X509Certificate2)

Initializes a new instance of the IdentityConfiguration class that has the specified service certificate. Settings are optionally loading the default configuration.

public:
 IdentityConfiguration(bool loadConfig, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ serviceCertificate);
public IdentityConfiguration (bool loadConfig, System.Security.Cryptography.X509Certificates.X509Certificate2 serviceCertificate);
new System.IdentityModel.Configuration.IdentityConfiguration : bool * System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.IdentityModel.Configuration.IdentityConfiguration
Public Sub New (loadConfig As Boolean, serviceCertificate As X509Certificate2)

Parameters

loadConfig
Boolean

true to load settings from the configuration file; otherwise false.

serviceCertificate
X509Certificate2

The service certificate. Sets the ServiceCertificate property.

Exceptions

loadConfig is true, but there is no <system.identityModel> configuration element.

Remarks

If loadConfig is true, property values are loaded from the unnamed <identityConfiguration> element in the configuration file; otherwise properties are set to their default values.

Applies to

IdentityConfiguration(String, X509Certificate2)

Initializes a new instance of the IdentityConfiguration class that has the specified service certificate, loading the named configuration.

public:
 IdentityConfiguration(System::String ^ identityConfigurationName, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ serviceCertificate);
public IdentityConfiguration (string identityConfigurationName, System.Security.Cryptography.X509Certificates.X509Certificate2 serviceCertificate);
new System.IdentityModel.Configuration.IdentityConfiguration : string * System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.IdentityModel.Configuration.IdentityConfiguration
Public Sub New (identityConfigurationName As String, serviceCertificate As X509Certificate2)

Parameters

identityConfigurationName
String

The name of the <service> element from which configuration is to be loaded.

serviceCertificate
X509Certificate2

The service certificate. Sets the ServiceCertificate property.

Exceptions

There is no <System.IdentityModel> configuration element.

Applies to