Bagikan melalui


RSA.DecryptValue(Byte[]) Metode

Definisi

Perhatian

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

Saat ditimpa di kelas turunan, mendekripsi data input menggunakan kunci privat.

public:
 virtual cli::array <System::Byte> ^ DecryptValue(cli::array <System::Byte> ^ rgb);
public:
 abstract cli::array <System::Byte> ^ DecryptValue(cli::array <System::Byte> ^ rgb);
public virtual 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}")]
public virtual byte[] DecryptValue (byte[] rgb);
public abstract byte[] DecryptValue (byte[] rgb);
abstract member DecryptValue : byte[] -> byte[]
override this.DecryptValue : byte[] -> byte[]
[<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[]
Public Overridable Function DecryptValue (rgb As Byte()) As Byte()
Public MustOverride Function DecryptValue (rgb As Byte()) As Byte()

Parameter

rgb
Byte[]

Teks sandi yang akan didekripsi.

Mengembalikan

Byte[]

Dekripsi parameter yang rgb dihasilkan dalam teks biasa.

Atribut

Pengecualian

Panggilan metode ini tidak didukung. Pengecualian ini dilemparkan dimulai dengan .NET Framework 4.6.

Keterangan

Dalam .NET Framework 4.5.2 dan versi .NET Framework yang lebih lama, metode ini adalah abstract. Namun, satu-satunya implementasi oleh kelas turunan, RSACryptoServiceProvider.DecryptValue, juga melemparkan NotSupportedException pengecualian.

Berlaku untuk

Lihat juga