CngKey.Export(CngKeyBlobFormat) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した形式で、キー マテリアルを BLOB にエクスポートします。
public:
cli::array <System::Byte> ^ Export(System::Security::Cryptography::CngKeyBlobFormat ^ format);
public byte[] Export(System.Security.Cryptography.CngKeyBlobFormat format);
[System.Security.SecurityCritical]
public byte[] Export(System.Security.Cryptography.CngKeyBlobFormat format);
member this.Export : System.Security.Cryptography.CngKeyBlobFormat -> byte[]
[<System.Security.SecurityCritical>]
member this.Export : System.Security.Cryptography.CngKeyBlobFormat -> byte[]
Public Function Export (format As CngKeyBlobFormat) As Byte()
パラメーター
- format
- CngKeyBlobFormat
キー BLOB の形式を指定するオブジェクト。
返品
指定した形式のキー マテリアルを含む BLOB。
- 属性
例外
format は nullです。
その他すべてのエラー。 通常、 ExportPolicy ではキーのエクスポートは許可されません。
注釈
Cryptography Next Generation (CNG) を使用すると、基になるキー ストレージ プロバイダー (KSP) がサポートする任意の形式でエクスポートできます。 たとえば、Windows Vistaでは、既定の KSP (MicrosoftSoftwareKeyStorageProvider) では、Pkcs8PrivateBlob、EccPrivateBlob、および OpaqueTransportBlob 形式でのみ秘密キーをエクスポートできます。 この制限は、基になる KSP によって制御されます。 別の KSP を使用する場合は、他の形式が適用される場合があります。