共用方式為


SPClaimsAuthMembershipProvider.ResetPassword Method

Resets a user’s password to a new, automatically generated password.

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

Syntax

'Declaration
Public Overrides Function ResetPassword ( _
    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.ResetPassword(name, _
    answer)
public override string ResetPassword(
    string name,
    string answer
)

Parameters

  • name
    Type: System.String

    The name of the user for whom the password is reset.

Return Value

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

Remarks

This override resets the password to a new, automatically generated password for the 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