ConfigurationBasedIssuerNameRegistry::AddTrustedIssuer Method (String^, String^)
Adds an issuer to the dictionary of trusted issuers.
Assembly: System.IdentityModel (in System.IdentityModel.dll)
Parameters
- certificateThumbprint
-
Type:
System::String^
ASN.1 encoded form of the issuer's certificate thumbprint.
- name
-
Type:
System::String^
The name of the issuer.
| Exception | Condition |
|---|---|
| ArgumentException | certificateThumbprint is null or empty. -or- name is null or empty. |
| InvalidOperationException | The issuer specified by certificateThumbprint has already been configured. (The issuer already exists in the ConfiguredTrustedIssuers dictionary.) |
You can call this method to add issuers to the ConfiguredTrustedIssuers dictionary. In derived classes, you can call this method from the LoadCustomConfiguration method to add issuers to the dictionary.
Available since 4.5