RSA.DecryptValue(Byte[]) Metod

Definition

Varning

RSA.EncryptValue and DecryptValue are not supported and throw NotSupportedException. Use RSA.Encrypt and RSA.Decrypt instead.

När de åsidosättas i en härledd klass dekrypterar indata med hjälp av den privata nyckeln.

public:
 virtual cli::array <System::Byte> ^ DecryptValue(cli::array <System::Byte> ^ rgb);
public:
 abstract cli::array <System::Byte> ^ DecryptValue(cli::array <System::Byte> ^ rgb);
[System.Obsolete("RSA.EncryptValue and DecryptValue are not supported and throw NotSupportedException. Use RSA.Encrypt and RSA.Decrypt instead.", DiagnosticId="SYSLIB0048", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public virtual byte[] DecryptValue(byte[] rgb);
public virtual byte[] DecryptValue(byte[] rgb);
public abstract byte[] DecryptValue(byte[] rgb);
[<System.Obsolete("RSA.EncryptValue and DecryptValue are not supported and throw NotSupportedException. Use RSA.Encrypt and RSA.Decrypt instead.", DiagnosticId="SYSLIB0048", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
abstract member DecryptValue : byte[] -> byte[]
override this.DecryptValue : byte[] -> byte[]
abstract member DecryptValue : byte[] -> byte[]
override this.DecryptValue : byte[] -> byte[]
abstract member DecryptValue : byte[] -> byte[]
Public Overridable Function DecryptValue (rgb As Byte()) As Byte()
Public MustOverride Function DecryptValue (rgb As Byte()) As Byte()

Parametrar

rgb
Byte[]

Chiffertexten som ska dekrypteras.

Returer

Byte[]

Den resulterande dekrypteringen av parametern rgb i oformaterad text.

Attribut

Undantag

Det här metodanropet stöds inte. Det här undantaget utlöses från och med .NET Framework 4.6.

Kommentarer

I .NET Framework 4.5.2 och tidigare versioner av .NET Framework var den här metoden abstract. Men den enda implementeringen av en härledd klass, RSACryptoServiceProvider.DecryptValue, utlöste också ett NotSupportedException undantag.

Gäller för

Se även