語言

X509Certificate.CreateFromSignedFile(String) 方法

定義

警告

Loading certificate data through the constructor or Import is obsolete. Use X509CertificateLoader instead to load certificates.

從指定的簽署檔案建立 X.509v3 憑證。

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

參數

filename
String

簽署檔案的路徑,從中建立 X.509 憑證。

傳回

新建立的 X.509 證書。

屬性

備註

ASN.1 DER 是此類別唯一支援的憑證格式。

適用於