Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ConfigurationBasedIssuerNameRegistry::AddTrustedIssuer Method (String^, String^)

.NET Framework (current version)
 

Adds an issuer to the dictionary of trusted issuers.

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

public:
void AddTrustedIssuer(
	String^ certificateThumbprint,
	String^ name
)

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.

.NET Framework
Available since 4.5
Return to top
Show:
© 2017 Microsoft