Partager via


RSACryptoServiceProvider.ExportParameters Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Exports the RSAParameters.

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

Syntax

'Declaration
<SecuritySafeCriticalAttribute> _
Public Overrides Function ExportParameters ( _
    includePrivateParameters As Boolean _
) As RSAParameters
[SecuritySafeCriticalAttribute]
public override RSAParameters ExportParameters(
    bool includePrivateParameters
)

Parameters

  • includePrivateParameters
    Type: System.Boolean
    true to include private parameters; otherwise, false.

Return Value

Type: System.Security.Cryptography.RSAParameters
The parameters for RSA.

Exceptions

Exception Condition
CryptographicException

The key cannot be exported.

Version Information

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.