Export (0) Print
Expand All

AuthenticationService.CreateDefaultUser Method

WCF RIA Services

[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.]

Creates a default user.

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

protected abstract IPrincipal CreateDefaultUser()

Return Value

Type: System.Security.Principal.IPrincipal
The user that was created.

ExceptionCondition
InvalidOperationException

This operation returns null.

This method is invoked when you access the User property before the User property is set. The returned value is then stored in the User property until you get a new user instance by calling the Login, Logout, or LoadUser method.

Show:
© 2015 Microsoft