RSA.DecryptValue(Byte[]) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
RSA.EncryptValue and DecryptValue are not supported and throw NotSupportedException. Use RSA.Encrypt and RSA.Decrypt instead.
在衍生類別中覆寫時,使用私密金鑰解密輸入資料。
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()
參數
- rgb
- Byte[]
要解密的密碼文字。
傳回
Byte[]
所產生之純文字的 rgb
參數解密。
- 屬性
例外狀況
不支援這個方法呼叫。 從 .NET Framework 4.6 開始,會擲回此例外狀況。
備註
在 .NET Framework 4.5.2 和舊版 .NET Framework 中,這個方法是 abstract
。 不過,衍生類別 RSACryptoServiceProvider.DecryptValue的唯一實作也會擲回 NotSupportedException 例外狀況。