LoginParameters Constructor (String, 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 and password.
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 _
)
'Usage
Dim userName As String
Dim password As String
Dim instance As New LoginParameters(userName, _
password)
public LoginParameters(
string userName,
string password
)
public:
LoginParameters(
String^ userName,
String^ password
)
new :
userName:string *
password:string -> LoginParameters
public function LoginParameters(
userName : String,
password : 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.
Remarks
This login will not persist.
See Also
Reference
System.ServiceModel.DomainServices.Client.ApplicationServices Namespace