AuthenticationBase<T>.ValidateUser Method
[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]
Verifies that the supplied user name and password are valid.
Namespace: System.ServiceModel.DomainServices.Server.ApplicationServices
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
Syntax
'Declaration
Protected Overridable Function ValidateUser ( _
userName As String, _
password As String _
) As Boolean
'Usage
Dim userName As String
Dim password As String
Dim returnValue As Boolean
returnValue = Me.ValidateUser(userName, _
password)
protected virtual bool ValidateUser(
string userName,
string password
)
protected:
virtual bool ValidateUser(
String^ userName,
String^ password
)
abstract ValidateUser :
userName:string *
password:string -> bool
override ValidateUser :
userName:string *
password:string -> bool
protected function ValidateUser(
userName : String,
password : String
) : boolean
Parameters
- userName
Type: System.String
The name of the user to be validated.
- password
Type: System.String
The password for the specified user.
Return Value
Type: System.Boolean
true if the user is valid; otherwise, false.
Remarks
This method is invoked from Login. By default, it delegates to Membership.ValidateUser. The base implementation does not need to be invoked when this method is overridden.
See Also
Reference
System.ServiceModel.DomainServices.Server.ApplicationServices Namespace