Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RSACryptoServiceProvider::ExportCspBlob Method (Boolean)

 

Exports a blob containing the key information associated with an RSACryptoServiceProvider object.

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

public:
[ComVisibleAttribute(false)]
virtual array<unsigned char>^ ExportCspBlob(
	bool includePrivateParameters
) sealed

Parameters

includePrivateParameters
Type: System::Boolean

true to include the private key; otherwise, false.

Return Value

Type: array<System::Byte>^

A byte array containing the key information associated with an RSACryptoServiceProvider 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
Windows Phone Silverlight
Available since 7.1
Return to top
Show:
© 2017 Microsoft