Share via


SimpleMembershipProvider.GetPassword(String, String) 方法

定義

從資料來源傳回指定之使用者帳戶的密碼。

public override string GetPassword (string username, string answer);
override this.GetPassword : string * string -> string
Public Overrides Function GetPassword (username As String, answer As String) As String

參數

username
String

要為其擷取密碼的使用者。

answer
String

密碼安全性問題的解答。

傳回

指定使用者帳戶的密碼。

例外狀況

answer 不符合使用者帳戶的安全性答案,且 RequiresQuestionAndAnswer 為 true。

適用於