AuthenticationBase<T>.CreateUser Method

[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 new instance of T and initializes it with default values.

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

Syntax

'Declaration
Protected Overridable Function CreateUser As T
'Usage
Dim returnValue As T

returnValue = Me.CreateUser()
protected virtual T CreateUser()
protected:
virtual T CreateUser()
abstract CreateUser : unit -> 'T 
override CreateUser : unit -> 'T 
protected function CreateUser() : T

Return Value

Type: T
A new instance of T.

Remarks

This method is invoked from GetAuthenticatedUser and GetAnonymousUser. By default, it returns an instance created with the default constructor. The base implementation does not need to be invoked when this method is overridden.

See Also

Reference

AuthenticationBase<T> Class

System.ServiceModel.DomainServices.Server.ApplicationServices Namespace