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
name
Type: System.StringThe user name to verify.
password
Type: System.StringThe password for the user.
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