Partilhar via


SPClaimsAuthMembershipProvider.ValidateUser Method

Verifies whether a user with the specified name and password exists in the data source.

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

Syntax

'Declaration
Public Overrides Function ValidateUser ( _
    name As String, _
    password As String _
) As Boolean
'Usage
Dim instance As SPClaimsAuthMembershipProvider
Dim name As String
Dim password As String
Dim returnValue As Boolean

returnValue = instance.ValidateUser(name, _
    password)
public override bool ValidateUser(
    string name,
    string password
)

Parameters

Return Value

Type: System.Boolean
true if a user with the specified name and password exists; otherwise, false.

Remarks

This override verifies whether a user with the specified password exists in the membership provider that is not an SPClaimsAuthMembershipProvider and is used by forms-based authentication of the current application.

See Also

Reference

SPClaimsAuthMembershipProvider Class

SPClaimsAuthMembershipProvider Members

Microsoft.SharePoint.Administration.Claims Namespace