Partilhar via


SPClaimsAuthMembershipProvider.GetPassword Method

Gets the password for a membership user.

Namespace:  Microsoft.SharePoint.Administration.Claims
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Overrides Function GetPassword ( _
    name As String, _
    answer As String _
) As String
'Usage
Dim instance As SPClaimsAuthMembershipProvider
Dim name As String
Dim answer As String
Dim returnValue As String

returnValue = instance.GetPassword(name, _
    answer)
public override string GetPassword(
    string name,
    string answer
)

Parameters

  • name
    Type: System.String

    The user for whom the password is retrieved.

  • answer
    Type: System.String

    The password answer for the membership user.

Return Value

Type: System.String
The password for the membership user.

Remarks

This override gets the password for the specified user in the membership provider that is not an SPClaimsAuthMembershipProvider, and is used by forms-based authentication in the current application.

See Also

Reference

SPClaimsAuthMembershipProvider Class

SPClaimsAuthMembershipProvider Members

Microsoft.SharePoint.Administration.Claims Namespace