DSACryptoServiceProvider.ExportCspBlob(Boolean) 方法

定义

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

public:
 virtual cli::array <System::Byte> ^ ExportCspBlob(bool includePrivateParameters);
[System.Runtime.InteropServices.ComVisible(false)]
public byte[] ExportCspBlob (bool includePrivateParameters);
abstract member ExportCspBlob : bool -> byte[]
override this.ExportCspBlob : bool -> byte[]
Public Function ExportCspBlob (includePrivateParameters As Boolean) As Byte()

参数

includePrivateParameters
Boolean

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

返回

Byte[]

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

实现

属性

注解

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

安全性

KeyContainerPermissionAccessEntryCollection
用于在导出私钥时访问密钥容器的权限。for permission to access a key container when exporting a private key. 安全操作: DemandSecurity action: Demand. 关联的枚举:ExportAssociated enumeration: Export

适用于

另请参阅