Partager via


CertificateLoader.LoadFromStoreCert Méthode

Définition

Charge un certificat à partir du magasin de certificats.

public:
 static System::Security::Cryptography::X509Certificates::X509Certificate2 ^ LoadFromStoreCert(System::String ^ subject, System::String ^ storeName, System::Security::Cryptography::X509Certificates::StoreLocation storeLocation, bool allowInvalid);
public static System.Security.Cryptography.X509Certificates.X509Certificate2 LoadFromStoreCert (string subject, string storeName, System.Security.Cryptography.X509Certificates.StoreLocation storeLocation, bool allowInvalid);
static member LoadFromStoreCert : string * string * System.Security.Cryptography.X509Certificates.StoreLocation * bool -> System.Security.Cryptography.X509Certificates.X509Certificate2
Public Shared Function LoadFromStoreCert (subject As String, storeName As String, storeLocation As StoreLocation, allowInvalid As Boolean) As X509Certificate2

Paramètres

subject
String

Objet du certificat

storeName
String

Nom du magasin de certificats.

storeLocation
StoreLocation

Emplacement du magasin de certificats.

allowInvalid
Boolean

Indique s’il faut charger ou non des certificats considérés comme non valides.

Retours

Certificat chargé.

Remarques

La correspondance exacte de l’objet est chargée le cas échéant, sinon, le certificat correspondant le mieux au nom de l’objet qui contient l’objet fourni. La comparaison de sujets ne respecte pas la casse.

S’applique à