Share via


LoginResult Constructor

[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 LoginResult class.

Namespace:  System.ServiceModel.DomainServices.Client.ApplicationServices
Assembly:  System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)

Syntax

'Declaration
Public Sub New ( _
    user As IPrincipal, _
    loginSuccess As Boolean _
)
'Usage
Dim user As IPrincipal
Dim loginSuccess As Boolean

Dim instance As New LoginResult(user, loginSuccess)
public LoginResult(
    IPrincipal user,
    bool loginSuccess
)
public:
LoginResult(
    IPrincipal^ user, 
    bool loginSuccess
)
new : 
        user:IPrincipal * 
        loginSuccess:bool -> LoginResult
public function LoginResult(
    user : IPrincipal, 
    loginSuccess : boolean
)

Parameters

  • loginSuccess
    Type: System.Boolean
    true if the Login call completed successfully; otherwise, false.

Exceptions

Exception Condition
InvalidOperationException

user is not authenticated when the Login call has finished successfully.

See Also

Reference

LoginResult Class

System.ServiceModel.DomainServices.Client.ApplicationServices Namespace