X509Certificate.CreateFromSignedFile(String) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Varning
Loading certificate data through the constructor or Import is obsolete. Use X509CertificateLoader instead to load certificates.
Skapar ett X.509v3-certifikat från den angivna signerade filen.
public:
static System::Security::Cryptography::X509Certificates::X509Certificate ^ CreateFromSignedFile(System::String ^ filename);
[System.Obsolete("Loading certificate data through the constructor or Import is obsolete. Use X509CertificateLoader instead to load certificates.", DiagnosticId="SYSLIB0057", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.X509Certificates.X509Certificate CreateFromSignedFile(string filename);
public static System.Security.Cryptography.X509Certificates.X509Certificate CreateFromSignedFile(string filename);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.X509Certificates.X509Certificate CreateFromSignedFile(string filename);
[<System.Obsolete("Loading certificate data through the constructor or Import is obsolete. Use X509CertificateLoader instead to load certificates.", DiagnosticId="SYSLIB0057", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member CreateFromSignedFile : string -> System.Security.Cryptography.X509Certificates.X509Certificate
static member CreateFromSignedFile : string -> System.Security.Cryptography.X509Certificates.X509Certificate
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member CreateFromSignedFile : string -> System.Security.Cryptography.X509Certificates.X509Certificate
Public Shared Function CreateFromSignedFile (filename As String) As X509Certificate
Parametrar
- filename
- String
Sökvägen till den signerade fil som X.509-certifikatet ska skapas från.
Returer
Det nyligen skapade X.509-certifikatet.
- Attribut
Kommentarer
ASN.1 DER är det enda certifikatformat som stöds av den här klassen.