Name
FormsAuthenticationEventArgs
Synopsis
This class is a custom System.EventArgs
that is used in the
event handler for the FormsAuthenticationModule.Authenticate
event. It provides two properties—Context
,
which provides a reference to the current System.Web.HttpContext
, and User
, which
will be a null reference (Nothing
) because information is not yet retrieved from the Forms authentication cookie. This event is not
typically used because Forms authentication already uses the custom code you
have created for the login page.
Public NotInheritable Class FormsAuthenticationEventArgs : Inherits EventArgs ' Public Constructors Public Sub New(ByVal context As System.Web.HttpContext) ' Public Instance Properties Public ReadOnly Property Context As HttpContext Public Property User As IPrincipal End Class
Hierarchy
System.Object→System.EventArgs→ FormsAuthenticationEventArgs
Get ASP.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.