Jaa


ValidateUser Method

Verifies that the specified user name and password exist in the data source.

Namespace:  Microsoft.CommerceServer.Runtime.Profiles
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

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

returnValue = instance.ValidateUser(username, _
    password)
public override bool ValidateUser(
    string username,
    string password
)
public:
virtual bool ValidateUser(
    String^ username, 
    String^ password
) override
public override function ValidateUser(
    username : String, 
    password : String
) : boolean

Parameters

Return Value

Type: System..::.Boolean
true if the specified username and password are valid; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

username is nullNothingnullptra null reference (Nothing in Visual Basic).

Remarks

Verifies that the specified user name and password exist in the data source. If the user does not exist in the data store, false is returned.

Permissions

See Also

Reference

UpmMembershipProvider Class

UpmMembershipProvider Members

Microsoft.CommerceServer.Runtime.Profiles Namespace