Freigeben über


CertificateLoader.LoadFromStoreCert Methode

Definition

Lädt ein Zertifikat aus dem Zertifikatspeicher.

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

Parameter

subject
String

Der Zertifikatantragsteller.

storeName
String

Zertifikatsspeichername.

storeLocation
StoreLocation

Der Speicherort des Zertifikatspeichers.

allowInvalid
Boolean

Gibt an, ob Zertifikate geladen werden sollen, die als ungültig gelten.

Gibt zurück

Das geladene Zertifikat.

Hinweise

Die genaue Antragstellerabgleichung wird geladen, falls vorhanden, andernfalls am besten mit dem Antragstellernamen übereinstimmen, der den angegebenen Antragsteller enthält. Beim Vergleich des Antragstellers wird die Groß-/Kleinschreibung nicht beachtet.

Gilt für: