Compartilhar via


SPClaimsAuthMembershipProvider.ChangePasswordQuestionAndAnswer method

Atualiza a pergunta de senha e resposta para um usuário da associação.

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

Syntax

'Declaração
Public Overrides Function ChangePasswordQuestionAndAnswer ( _
    name As String, _
    password As String, _
    newPwdQuestion As String, _
    newPwdAnswer As String _
) As Boolean
'Uso
Dim instance As SPClaimsAuthMembershipProvider
Dim name As String
Dim password As String
Dim newPwdQuestion As String
Dim newPwdAnswer As String
Dim returnValue As Boolean

returnValue = instance.ChangePasswordQuestionAndAnswer(name, _
    password, newPwdQuestion, newPwdAnswer)
public override bool ChangePasswordQuestionAndAnswer(
    string name,
    string password,
    string newPwdQuestion,
    string newPwdAnswer
)

Parâmetros

  • name
    Type: System.String

    O usuário para o qual a pergunta de senha e resposta são atualizados.

  • newPwdQuestion
    Type: System.String

    Nova pergunta de senha para o usuário.

  • newPwdAnswer
    Type: System.String

    Nova resposta de senha para o usuário.

Valor retornado

Type: System.Boolean
true se a pergunta de senha e resposta são atualizados com êxito; Caso contrário, false.

Comentários

Se o usuário pode ser encontrado e a senha estiver correta, essa substituição atualiza a pergunta de senha e resposta para o usuário especificado no provedor de associação que não é um SPClaimsAuthMembershipProvidere é usado pela autenticação baseada em formulários no aplicativo atual.

Ver também

Referência

SPClaimsAuthMembershipProvider class

SPClaimsAuthMembershipProvider members

Microsoft.SharePoint.Administration.Claims namespace