X509Certificate2Collection.Export メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
コンテンツ タイプに基づく X.509 証明書情報をバイト配列にエクスポートします。
オーバーロード
| 名前 | 説明 |
|---|---|
| Export(X509ContentType, String) |
パスワードを使用して X.509 証明書情報をバイト配列にエクスポートします。 |
| Export(X509ContentType) |
X.509 証明書情報をバイト配列にエクスポートします。 |
Export(X509ContentType, String)
パスワードを使用して X.509 証明書情報をバイト配列にエクスポートします。
public:
cli::array <System::Byte> ^ Export(System::Security::Cryptography::X509Certificates::X509ContentType contentType, System::String ^ password);
public byte[]? Export(System.Security.Cryptography.X509Certificates.X509ContentType contentType, string? password);
public byte[] Export(System.Security.Cryptography.X509Certificates.X509ContentType contentType, string password);
member this.Export : System.Security.Cryptography.X509Certificates.X509ContentType * string -> byte[]
Public Function Export (contentType As X509ContentType, password As String) As Byte()
パラメーター
- contentType
- X509ContentType
サポートされている X509ContentType オブジェクト。
- password
- String
バイト配列を保護するために使用される文字列。
返品
バイト配列内の X.509 証明書情報。
例外
証明書が読み取り不可能であるか、コンテンツが無効であるか、またはパスワードを必要とする証明書の場合、指定されたパスワードが正しくないため、秘密キーをエクスポートできませんでした。
注釈
このメソッドは、次の X509ContentType 型をサポートしています。
適用対象
Export(X509ContentType)
X.509 証明書情報をバイト配列にエクスポートします。
public:
cli::array <System::Byte> ^ Export(System::Security::Cryptography::X509Certificates::X509ContentType contentType);
public byte[]? Export(System.Security.Cryptography.X509Certificates.X509ContentType contentType);
public byte[] Export(System.Security.Cryptography.X509Certificates.X509ContentType contentType);
member this.Export : System.Security.Cryptography.X509Certificates.X509ContentType -> byte[]
Public Function Export (contentType As X509ContentType) As Byte()
パラメーター
- contentType
- X509ContentType
サポートされている X509ContentType オブジェクト。
返品
バイト配列内の X.509 証明書情報。
注釈
このメソッドは、パスワードを必要としないコンテンツ タイプをサポートします。