LoginParameters Constructor (String, String, Boolean, String)
[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.]
Initializes a new instance of the LoginParameters class with the specified name, password, and persistence.
Namespace: System.ServiceModel.DomainServices.Client.ApplicationServices
Assembly: System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)
Syntax
'Declaration
Public Sub New ( _
userName As String, _
password As String, _
isPersistent As Boolean, _
customData As String _
)
'Usage
Dim userName As String
Dim password As String
Dim isPersistent As Boolean
Dim customData As String
Dim instance As New LoginParameters(userName, _
password, isPersistent, customData)
public LoginParameters(
string userName,
string password,
bool isPersistent,
string customData
)
public:
LoginParameters(
String^ userName,
String^ password,
bool isPersistent,
String^ customData
)
new :
userName:string *
password:string *
isPersistent:bool *
customData:string -> LoginParameters
public function LoginParameters(
userName : String,
password : String,
isPersistent : boolean,
customData : String
)
Parameters
- userName
Type: System.String
The name of the user to be authenticated.
- password
Type: System.String
The password of the user to be authenticated.
- isPersistent
Type: System.Boolean
true if the login should persist between sessions; otherwise, false.
- customData
Type: System.String
Optional implementation-specific data.
See Also
Reference
System.ServiceModel.DomainServices.Client.ApplicationServices Namespace