IAuthentication<T>.Login 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.]
Authenticates and returns the user with the specified name and password.
Namespace: System.ServiceModel.DomainServices.Server.ApplicationServices
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
Syntax
'Declaration
<QueryAttribute(IsComposable := False, HasSideEffects := True)> _
Function Login ( _
userName As String, _
password As String, _
isPersistent As Boolean, _
customData As String _
) As T
'Usage
Dim instance As IAuthentication
Dim userName As String
Dim password As String
Dim isPersistent As Boolean
Dim customData As String
Dim returnValue As T
returnValue = instance.Login(userName, _
password, isPersistent, customData)
[QueryAttribute(IsComposable = false, HasSideEffects = true)]
T Login(
string userName,
string password,
bool isPersistent,
string customData
)
[QueryAttribute(IsComposable = false, HasSideEffects = true)]
T Login(
String^ userName,
String^ password,
bool isPersistent,
String^ customData
)
[<QueryAttribute(IsComposable = false, HasSideEffects = true)>]
abstract Login :
userName:string *
password:string *
isPersistent:bool *
customData:string -> 'T
function Login(
userName : String,
password : String,
isPersistent : boolean,
customData : String
) : T
Parameters
- userName
Type: System.String
The user name associated with the user to authenticate.
- password
Type: System.String
The password associated with the user to authenticate.
- isPersistent
Type: System.Boolean
true if the authentication should persist between sessions; otherwise, false.
- customData
Type: System.String
Optional implementation-specific data.
Return Value
Type: T
A single user or nulla null reference (Nothing in Visual Basic) if authentication failed.
See Also
Reference
System.ServiceModel.DomainServices.Server.ApplicationServices Namespace