RSA.DecryptValue Method (Byte[])


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

When overridden in a derived class, decrypts the input data using the private key.

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

abstract DecryptValue : 
        rgb:byte[] -> byte[]
override DecryptValue : 
        rgb:byte[] -> byte[]


Type: System.Byte[]

The cipher text to be decrypted.

Return Value

Type: System.Byte[]

The resulting decryption of the rgb parameter in plain text.

Exception Condition

This method call is not supported. This exception is thrown starting with the .NET Framework 4.6.

In the .NET Framework 4.5.2 and earlier versions of the .NET Framework, this method was abstract. However, the only implementation by a derived class, RSACryptoServiceProvider.DecryptValue, also threw a NotSupportedException exception.

.NET Framework
Available since 1.1
Windows Phone Silverlight
Available since 7.1
Return to top