共用方式為


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);
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.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[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}")]
public static System.Security.Cryptography.X509Certificates.X509Certificate CreateFromSignedFile (string filename);
static member CreateFromSignedFile : string -> System.Security.Cryptography.X509Certificates.X509Certificate
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member CreateFromSignedFile : string -> System.Security.Cryptography.X509Certificates.X509Certificate
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<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}")>]
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 是這個類別唯一支援的憑證格式。

適用於