DSACryptoServiceProvider.ExportCspBlob Method (Boolean)

 

Exports a blob containing the key information associated with a DSACryptoServiceProvider object.

Namespace:   System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

[ComVisibleAttribute(false)]
public byte[] ExportCspBlob(
	bool includePrivateParameters
)

Parameters

includePrivateParameters
Type: System.Boolean

true to include the private key; otherwise, false.

Return Value

Type: System.Byte[]

A byte array containing the key information associated with a DSACryptoServiceProvider object.

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. Security action: Demand. Associated enumeration: KeyContainerPermissionFlags.Export

.NET Framework
Available since 2.0
Return to top
Show: