ECDiffieHellman.ExportECPrivateKey 方法

定义

以 ECPrivateKey 格式导出当前密钥。Exports the current key in the ECPrivateKey format.

public:
 virtual cli::array <System::Byte> ^ ExportECPrivateKey();
public virtual byte[] ExportECPrivateKey ();
abstract member ExportECPrivateKey : unit -> byte[]
override this.ExportECPrivateKey : unit -> byte[]
Public Overridable Function ExportECPrivateKey () As Byte()

返回

Byte[]

一个字节数组,它包含此密钥的 ECPrivateKey 表示形式。A byte array containing the ECPrivateKey representation of this key.

异常

未能导出密钥。The key could not be exported.

适用于

另请参阅