PassportAuthenticationEventArgs.User Property

Gets or sets the IPrincipal object to be associated with the request.

Namespace: System.Web.Security
Assembly: System.Web (in system.web.dll)

'Declaration
Public Property User As IPrincipal
'Usage
Dim instance As PassportAuthenticationEventArgs
Dim value As IPrincipal

value = instance.User

instance.User = value
/** @property */
public IPrincipal get_User ()

/** @property */
public void set_User (IPrincipal value)

public function get User () : IPrincipal

public function set User (value : IPrincipal)

Not applicable.

Property Value

The IPrincipal object to be associated with the request.

The user object should be attached to the context. If User is non a null reference (Nothing in Visual Basic) and User is a null reference (Nothing in Visual Basic), the PassportAuthenticationModule will initialize User with User.

At the time the PassportAuthentication_OnAuthenticate event is fired, this will be a null reference (Nothing in Visual Basic). The application handling the event should attach an appropriate User to the context, or to User.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: