Bagikan melalui


CertificateLoader.LoadFromStoreCert Metode

Definisi

Memuat sertifikat dari penyimpanan sertifikat.

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

Subjek sertifikat.

storeName
String

Nama penyimpanan sertifikat.

storeLocation
StoreLocation

Lokasi penyimpanan sertifikat.

allowInvalid
Boolean

Apakah memuat sertifikat yang dianggap tidak valid atau tidak.

Mengembalikan

Sertifikat yang dimuat.

Keterangan

Kecocokan subjek yang tepat dimuat jika ada, jika tidak, sertifikat yang paling cocok dengan nama subjek yang berisi subjek yang disediakan. Perbandingan subjek tidak peka huruf besar/kecil.

Berlaku untuk