ICspAsymmetricAlgorithm.ExportCspBlob(Boolean) 方法

定义

导出包含与 AsymmetricAlgorithm 对象关联的密钥信息的 Blob。Exports a blob that contains the key information associated with an AsymmetricAlgorithm object.

public:
 cli::array <System::Byte> ^ ExportCspBlob(bool includePrivateParameters);
public byte[] ExportCspBlob (bool includePrivateParameters);
abstract member ExportCspBlob : bool -> byte[]
Public Function ExportCspBlob (includePrivateParameters As Boolean) As Byte()

参数

includePrivateParameters
Boolean

要包括私钥,则为 true;否则为 falsetrue to include the private key; otherwise, false.

返回

Byte[]

一个字节数组,包含与 AsymmetricAlgorithm 对象关联的密钥信息。A byte array that contains the key information associated with an AsymmetricAlgorithm object.

注解

ExportCspBlob方法返回包含与非托管 Microsoft 加密 API (CAPI) 兼容的密钥信息的 blob。The ExportCspBlob method returns a blob that contains key information that is compatible with the unmanaged Microsoft Cryptographic API (CAPI).

适用于