Redigera

Dela via


ActiveDirectoryMembershipProvider.GetPassword(String, String) Method

Definition

Returns the password of the specified user from the database. The ActiveDirectoryMembershipProvider class does not support this method.

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

Parameters

username
String

The user to retrieve the password for.

passwordAnswer
String

The password answer for the user.

Returns

Always throws a NotSupportedException exception.

Exceptions

The ActiveDirectoryMembershipProvider does not support password retrieval.

Remarks

The ActiveDirectoryMembershipProvider class does not support returning the user's password.

Applies to

See also