X509CertificateLoader.LoadCertificateFromFile(String) Méthode
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Charge un seul certificat X.509 (dans l’encodage PEM ou DER) à partir du fichier spécifié.
public:
static System::Security::Cryptography::X509Certificates::X509Certificate2 ^ LoadCertificateFromFile(System::String ^ path);
public static System.Security.Cryptography.X509Certificates.X509Certificate2 LoadCertificateFromFile (string path);
static member LoadCertificateFromFile : string -> System.Security.Cryptography.X509Certificates.X509Certificate2
Public Shared Function LoadCertificateFromFile (path As String) As X509Certificate2
- path
- String
Chemin d’accès du fichier à ouvrir.
Certificat chargé.
path
est null
.
Les données ne se chargent pas en tant que certificat X.509 valide.
Une erreur s’est produite lors du chargement du fichier spécifié.
Cette méthode charge uniquement des certificats simples, identifiés comme Cert par GetCertContentType(String)
Produit | Versions |
---|---|
.NET | 8 (package-provided), 9 |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :