Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- username
Type: System..::.String
The name of the user to validate.
- password
Type: System..::.String
The password for the specified user.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.