MembershipProvider.DecryptPassword(Byte[]) 方法

定义

对加密的密码进行解密。

protected:
 virtual cli::array <System::Byte> ^ DecryptPassword(cli::array <System::Byte> ^ encodedPassword);
protected virtual byte[] DecryptPassword (byte[] encodedPassword);
abstract member DecryptPassword : byte[] -> byte[]
override this.DecryptPassword : byte[] -> byte[]
Protected Overridable Function DecryptPassword (encodedPassword As Byte()) As Byte()

参数

encodedPassword
Byte[]

包含要进行解密的加密密码的字节数组。

返回

Byte[]

包含加密密码的字节数组。

例外

ValidationKeyDecryptionKey 属性设置为 AutoGenerate

此方法不可用。 如果应用程序以 .NET Framework 4 客户端配置文件为目标,则可能会发生这种情况。 若要避免此异常,请重写该方法,或将应用程序更改为面向 .NET Framework 的完整版本。

示例

有关实现的示例 MembershipProvider ,请参阅 实现配置文件提供程序

注解

DecryptPassword方法是一个虚拟方法,为成员资格提供程序实现提供支持加密的密码格式时要使用的方法。

适用于

另请参阅