次の方法で共有


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