System.Web 1.0.5000.0 2.0.0.0 Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details. System.Object System.Web.IHttpModule

The ensures that the property of the current instance is set to an object for each request. The examines the property after the event and before the event. If the property is null, the sets the property to a object that contains no user information.

If the authentication module sets the property to 401, the will render an access-denied error page. If the value of the property is set to a value greater than 200, the object will end the request. In that case, only HTTP modules that subscribe to the event are called prior to the completion of the current request.

The exposes an event. You can use this event to provide a custom object for the property of the current instance. The event is accessed by specifying an event named DefaultAuthentication_OnAuthenticate in the application's Global.asax file.

Ensures that an authentication object is present in the context. This class cannot be inherited.

- Constructor

  This constructor is not intended to be called from application code.

  ASP.NET calls this constructor to create an instance of the class. After calling the constructor, it calls the method to initialize the new object.

  Initializes a new instance of the class.

  1.0.5000.0
  2.0.0.0
- Event
  System.Web.Security.DefaultAuthenticationEventHandler

  The event is raised after the event. It is used to ensure that the property of the current instance is populated with an object.

  You can access the event of the class by specifying a subroutine named DefaultAuthentication_OnAuthenticate in the application's Global.asax file.

  You can use the property of the object in the DefaultAuthentication_OnAuthenticate event to set the property of the current instance to a custom object. If you do not specify a value for the property, the sets the property of the instance to a object that contains no user information.

  The DefaultAuthentication_OnAuthenticate event is raised after the event and before the event. If you have an authorization section that depends on the user name to deny or allow access to your application, modifying the property of the current instance can affect the behavior of your application. Be sure that the user name you set during the DefaultAuthentication_OnAuthenticate event is considered when you specify the authorization section in your configuration.

  If the Web application is running in IIS 7.0 in Integrated mode, the event of the is not raised. If the mode attribute of the authentication configuration element is set to "None" and the application subscribes to the event, a error is raised. In this scenario, to receive authentication notification, subscribe to the event of the instance. For more information about compatibility issues in Integrated mode, see Moving an ASP.NET Application from IIS 6.0 to IIS 7.0.

  Occurs after the request has been authenticated.

  1.0.5000.0
  2.0.0.0
- Method
  System.Void

  This method is not intended to be called from application code.

  Releases all resources, other than memory, used by the .

  1.0.5000.0
  2.0.0.0
- Method
  System.Void ``

  This method is not intended to be called from application code.

  The method ensures that the is included in the processing of events.

  Initializes the object.

  The current instance. 1.0.5000.0 2.0.0.0