System.Web.Security.AnonymousIdentificationEventArgs Class

Provides data for the AnonymousIdentification_Creating event. This class cannot be inherited.

See Also: AnonymousIdentificationEventArgs Members

Syntax

public sealed class AnonymousIdentificationEventArgs : EventArgs

Remarks

The System.Web.Security.AnonymousIdentificationEventArgs class is used to supply event values to the AnonymousIdentificationModule.Creating event and to enable you to specify a custom Windows identity for the current request. You can access the AnonymousIdentificationModule.Creating event of the System.Web.Security.AnonymousIdentificationModule class by specifying a subroutine named AnonymousIdentification_Creating in the Global.asax file for your ASP.NET application.

The System.Web.Security.AnonymousIdentificationModule constructs a System.Web.Security.AnonymousIdentificationEventArgs object using the current System.Web.HttpContext and passes it to the AnonymousIdentification_Creating event.

You can use the AnonymousIdentificationEventArgs.AnonymousID property of the System.Web.Security.AnonymousIdentificationEventArgs object supplied to the AnonymousIdentification_Creating event to set the anonymous identifier to a custom value. If you do not specify a value for the AnonymousIdentificationEventArgs.AnonymousID property during the AnonymousIdentification_Creating event, a Guid is used.

The AnonymousIdentification_Creating event is only raised when the anonymous identification is AnonymousIdentificationModule.Enabled.

Requirements

Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0