WebAuthenticationService.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.Web (in System.ServiceModel.DomainServices.Client.Web.dll)

protected override IPrincipal CreateDefaultUser()

Return Value

Type: System.Security.Principal.IPrincipal
The new user.


DomainContext is null and a new instance cannot be created.

Creates a user by deserializing one from the application init params. If no user was included, one will be created by using the default constructor.