Compartilhar via


CertificateLoader.LoadFromStoreCert Método

Definição

Carrega um certificado do repositório de certificados.

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

Parâmetros

subject
String

A entidade do certificado.

storeName
String

O nome do repositório de certificados.

storeLocation
StoreLocation

O local do repositório de certificados.

allowInvalid
Boolean

Se deve ou não carregar certificados considerados inválidos.

Retornos

O certificado carregado.

Comentários

A correspondência exata da entidade será carregada se presente, caso contrário, melhor certificado correspondente com o nome da entidade que contém a entidade fornecida. A comparação de entidades não diferencia maiúsculas de minúsculas.

Aplica-se a