CertificateLoader.LoadFromStoreCert メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
証明書ストアから証明書を読み込みます。
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
パラメーター
- subject
- String
証明書のサブジェクト。
- storeName
- String
証明書ストアの名前。
- storeLocation
- StoreLocation
証明書ストアの場所。
- allowInvalid
- Boolean
無効と見なされる証明書を読み込むかどうか。
戻り値
読み込まれた証明書。
注釈
完全なサブジェクト一致が存在する場合は読み込まれます。それ以外の場合は、指定されたサブジェクトを含むサブジェクト名と最も一致する証明書が読み込まれます。 サブジェクト比較では、大文字と小文字は区別されません。