System.Security.Cryptography.RSACryptoServiceProvider.ExportParameters Method

Exports the System.Security.Cryptography.RSAParameters.

Syntax

public override RSAParameters ExportParameters (bool includePrivateParameters)

Parameters

includePrivateParameters
true to include private parameters; otherwise, false.

Returns

The parameters for System.Security.Cryptography.RSA.

Remarks

You are responsable to zeroize the private key (System.Security.Cryptography.RSAParameters parameters RSAParameters.D, RSAParameters.P, RSAParameters.Q, RSAParameters.DP, RSAParameters.DQ and RSAParameters.InverseQ) if you export it from the instance.

Requirements

Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0