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.IServiceProvider

Classes that inherit the and interfaces are provided a reference to an object for the current HTTP request. The object provides access to the intrinsic , , and properties for the request.

Encapsulates all HTTP-specific information about an individual HTTP request.

- Constructor
  To be added

  Initializes a new instance of the class that uses the specified worker-request object.

  The object for the current HTTP request.
  1.0.5000.0
  2.0.0.0
- Constructor
  To be added

  Initializes a new instance of the class by using the specified request and response objects.

  The object for the current HTTP request.
  The object for the current HTTP request.
  1.0.5000.0
  2.0.0.0
- Method
  System.Void `` To be added

  Adds an exception to the exception collection for the current HTTP request.

  The to add to the exception collection. 1.0.5000.0 2.0.0.0
- Property
  System.Exception[] To be added: an object of type 'Exception []' To be added

  Gets an array of errors accumulated while processing an HTTP request.

  1.0.5000.0
  2.0.0.0
- Property
  System.Web.HttpApplicationState To be added: an object of type 'HttpApplicationState' To be added

  Gets the object for the current HTTP request.

  1.0.5000.0
  2.0.0.0
- Property
  System.Web.HttpApplication To be added: an object of type 'HttpApplication' To be added

  Gets or sets the object for the current HTTP request.

  1.0.5000.0
  2.0.0.0
- Property
  System.Web.Caching.Cache To be added: an object of type 'Caching.Cache'

  There is one instance of the class per application domain. As a result, the object that is returned by the property is the object for all requests in the application domain.

  Gets the object for the current application domain.

  1.0.5000.0
  2.0.0.0
- Method
  System.Void To be added

  Clears all errors for the current HTTP request.

  1.0.5000.0
  2.0.0.0
- Property
  System.Web.HttpContext This property is a gross hack. It is used by applications that have not passed the class around and require access to it.

  The routine internally uses a technique similar to thread local storage to fetch the value which is slower than having this property available as a parameter to your routines.

  This property is a static property of the class. The property stores the instance that applies to the current request. The properties of this instance are the non-static properties of the class.

  You can also use the property to access the object for the current HTTP request.

  Gets or sets the object for the current HTTP request.

  1.0.5000.0
  2.0.0.0
- Property
  2.0.0.0
  System.Web.IHttpHandler To be added.

  The currently executing handler that is referenced by the property might be different than the handler that is referenced by the property. This can occur when another handler was requested by using the method or the method. When the currently executing handler finishes processing, the previously determined handler is restored.

  Gets the object that represents the currently executing handler.

- Property
  2.0.0.0
  System.Web.RequestNotification To be added.

  The property requires the integrated pipeline mode in iisver and at least the .NET Framework version 3.0. When available, the property returns a value. The value of the property indicates which event in the instance is currently processing the request.

  The property is not intended to be set. Instead, it is set by iisver during the processing of the request in the ASP.NET pipeline. Setting the property will result in a compilation error.

  is introduced in the .NET Framework version 3.5. For more information, see The .NET Framework 3.5 Architecture.

  Gets a value that indicates the current event that is processing.

- Property
  System.Exception To be added: an object of type 'Exception' To be added

  Gets the first error (if any) accumulated during HTTP request processing.

  1.0.5000.0
  2.0.0.0
- Method
  System.Object ``

  The method has been deprecated. Use the method of the class to get configuration information for the current application.

  Returns requested configuration information for the current application.

  An object containing configuration information. (Cast the returned configuration section to the appropriate configuration type before use.)

  The application configuration tag for which information is requested. 1.0.5000.0 2.0.0.0 System.Obsolete("use WebConfigurationManager.GetWebApplicationSection")
- Method
  System.Object ``

  The method has been deprecated. Use the method to get configuration information for the current HTTP request.

  Returns requested configuration information for the current HTTP request.

  The specified , null if the section does not exist, or an internal object if the section is not accessible at run time. (Cast the returned object to the appropriate configuration type before use.)

  The configuration tag for which information is requested. 1.0.5000.0 2.0.0.0 System.Obsolete("see GetSection")
- Method
  2.0.0.0
  System.Object `` ``

  The method returns a global resource by using the culture that is specified in the property.

  In some editing environments, such as vwprvw, the editor might throw a design-time exception if you use a period (.) in the global resource-key name. However, this does not affect your ability to edit or save the file, and you can ignore the error.

  Gets an application-level resource object based on the specified and properties.

  An that represents the requested application-level resource object; otherwise, null if a resource object is not found or if a resource object is found but it does not have the requested property.

  A string that represents the property of the requested resource object. A string that represents the property of the requested resource object.
- Method
  2.0.0.0
  System.Object `` `` ``

  The object represents the culture for which the resource was localized. If the resource is not localized for this culture, the lookup will follow a fallback process to locate an appropriate resource. For more information, see Packaging and Deploying Resources.

  In some editing environments, such as Visual Web Developer, the editor might throw a design-time exception if you use a period (.) in the global resource-key name. However, this does not affect your ability to edit or save the file, and you can ignore the error.

  Gets an application-level resource object based on the specified and properties, and on the object.

  An that represents the requested application-level resource object, which is localized for the specified culture; otherwise, null if a resource object is not found or if a resource object is found but it does not have the requested property.

  A string that represents the property of the requested resource object. A string that represents a property of the requested resource object. A string that represents the object of the requested resource.
- Method
  2.0.0.0
  System.Object `` ``

  The method returns a local resource by using the culture that is specified in the property.

  Gets a page-level resource object based on the specified and properties.

  An that represents the requested page-level resource object; otherwise, null if a matching resource object is found but not a parameter.

  The property for the local resource object. A string that represents a property of the requested resource object
- Method
  2.0.0.0
  System.Object `` `` ``

  If the resource is not localized for this culture, the lookup will follow a fallback process to locate an appropriate resource. For more information, see Packaging and Deploying Resources.

  Gets a page-level resource object based on the specified and properties, and on the object.

  An that represents the requested local resource object, which is localized for the specified culture; otherwise null if a matching resource object is found but not a parameter.

  The property for the local resource object. A string that represents a property of the requested resource object. A string that represents the object of the requested resource object.
- Method
  2.0.0.0
  System.Object `` To be added. To be added.

  Gets a specified configuration section for the current application's default configuration.

  The specified , null if the section does not exist, or an internal object if the section is not accessible at run time.

- Property
  System.Web.IHttpHandler To be added: an object of type 'IHttpHandler'

  The property contains a reference to the handler that processes the HTTP request. The handler can be specified by using the httpHandlers element, or by using a custom handler defined in user code. For more information about handlers, see HTTP Handlers and HTTP Modules Overview.

  The reference to the property will remain the same even after the current page has been changed by a server-side method, such as the method or the method.

  Gets or sets the object responsible for processing the HTTP request.

  1.0.5000.0
  2.0.0.0
- Property
  System.Boolean To be added: an object of type 'bool' To be added

  Gets a value indicating whether custom errors are enabled for the current HTTP request.

  1.0.5000.0
  2.0.0.0
- Property
  System.Boolean To be added: an object of type 'bool' To be added

  Gets a value indicating whether the current HTTP request is in debug mode.

  1.0.5000.0
  2.0.0.0
- Property
  2.0.0.0
  System.Boolean To be added.

  The property is only supported with the integrated mode in iisver and at least the .NET Framework 3.0. When available, the property returns a Boolean value that indicates whether an event in the object has finished processing.

  The property is not intended to be set. Instead, it is provided by iisver to the ASP.NET runtime for each notification. Setting the property will result in a compilation error.

  In scenarios where multiple events of the object are handled by one event handler, you can use the property in combination with the enumeration to precisely determine where in the application lifecycle the current request is.

  is introduced in the .NET Framework version 3.5. For more information, see The .NET Framework 3.5 Architecture.

  Gets a value that is the current processing point in the ASP.NET pipeline just after an event has finished processing.

- Property
  System.Collections.IDictionary a To be added

  Gets a key/value collection that can be used to organize and share data between an interface and an interface during an HTTP request.

  1.0.5000.0
  2.0.0.0
- Property
  2.0.0.0
  System.Web.IHttpHandler To be added.

  The property corresponds to the last handler before the current request was executed.

  Gets the object for the parent handler.

- Property
  2.0.0.0
  System.Web.Profile.ProfileBase To be added.

  A property is used for persistent storage of structured data using a type-safe API. When a property is accessed but no value is present, an empty instance is returned; null is not returned.

  Gets the object for the current user profile.

- Property
  System.Web.HttpRequest To be added: an object of type 'HttpRequest'

  The property provides programmatic access to the properties and methods of the class. Because ASP.NET pages contain a default reference to the namespace (which contains the class), you can reference the members of on an .aspx page without using the fully qualified class reference to . For example, you can use Request.Browser to get the capabilities of the client browser. However, if you want to use the members of from an ASP.NET code-behind module, you must include a reference to the namespace in the module and a fully qualified reference to both the currently active request/response context and the class in that you want to use. For example, in a code-behind page you must specify the fully qualified name HttpContext.Current.Request.Browser.

  ASP.NET will throw an exception if you try to use this property when the object is not available. For example, this would be true in the Application_Start method of the Global.asax file, or in a method that is called from the Application_Start method. At that time no HTTP request has been created yet.

  Gets the object for the current HTTP request.

  1.0.5000.0
  2.0.0.0
- Property
  System.Web.HttpResponse The object for the current request.

  The property provides programmatic access to the properties and methods of the class. Because ASP.NET pages contain a default reference to the namespace (which contains the class), you can reference the members of on an .aspx page without using the fully qualified class reference to . For example, you can use Response.Write("some output") to write output to an HTTP output stream. However, if you want to use the members of from an ASP.NET code-behind module, you must include a reference to the namespace in the module and a fully qualified reference to the currently active request/response context and the class in that you want to use. For example, in a code-behind page you must specify the fully qualified name HttpContext.Current.Response.Write("some output").

  Gets the object for the current HTTP response.

  1.0.5000.0
  2.0.0.0
- Method
  System.Void ``

  The method redirects a request for a resource to a different path than the one that is indicated by the requested URL. If you have to reset the virtual path so that requests from the client for server resources resolve correctly, use the overload of this method that takes the parameter and set the parameter to false.

  URL rewriting is useful when you want to restructure the pages in your Web application, and you want to make sure that people who have bookmarked old URLs can still use them after you have moved pages. URL rewriting enables you to transparently forward requests to the new page location.

  If you want to enable a site to use URLs that are more user-friendly and are optimized for search engines, a more robust alternative is to use ASP.NET routing. For more information, see ASP.NET Routing.

  Rewrites the URL using the given path.

  The internal rewrite path. 1.0.5000.0 2.0.0.0
- Method
  2.0.0.0
  System.Void `` ``

  The method is called by the method with the parameter set to true. To ensure that the virtual path that is used to construct paths to resources is not modified, set the parameter to false. A common scenario in which you might want to set to false is when you need to rewrite the URL, and you are using themes and redirecting the URL to a resource located in a different folder than the requested resource.

  URL rewriting is useful when you want to restructure the pages in your Web application, and you want to make sure that people who have bookmarked old URLs can still use them after you have moved pages. URL rewriting enables you to transparently forward requests to the new page location.

  If you want to enable a site to use URLs that are more user-friendly and are optimized for search engines, a more robust alternative is to use ASP.NET routing. For more information, see ASP.NET Routing.

  Rewrites the URL using the given path and a Boolean value that specifies whether the virtual path for server resources is modified.

  The internal rewrite path. true to reset the virtual path; false to keep the virtual path unchanged.
- Method
  System.Void `` `` ``

  The method redirects a request for a resource to another resource without changing the URL.

  The parameter does not include the parameter content. For the URL http://www.microsoft.com/virdir/page.html/tail, the parameter is http://www.microsoft.com/virdir/page.html, and the parameter is tail.

  URL rewriting is useful when you want to restructure the pages in your Web application, and you want to make sure that people who have bookmarked old URLs can still use them after you have moved pages. URL rewriting enables you to transparently forward requests to the new page location.

  If you want to enable a site to use URLs that are more user-friendly and are optimized for search engines, a more robust alternative is to use ASP.NET routing. For more information, see ASP.NET Routing.

  Rewrites the URL by using the given path, path information, and query string information.

  The internal rewrite path. Additional path information for a resource. For more information, see . The request query string. 1.0.5000.0 2.0.0.0
- Method
  2.0.0.0
  System.Void `` `` `` ``

  The parameter does not include the content of the parameter. For the URL http://www.microsoft.com/virdir/page.html/tail, the parameter is http://www.microsoft.com/virdir/page.html, and the parameter is tail.

  To ensure that the virtual path that is used to construct paths to resources is not modified, set the parameter to false. A common scenario in which you might want to set to false is when you need to rewrite the URL, and you are using themes and redirecting the URL to a resource located in a different folder than the requested resource.

  URL rewriting is useful when you want to restructure the pages in your Web application, and you want to make sure that people who have bookmarked old URLs can still use them after you have moved pages. URL rewriting enables you to transparently forward requests to the new page location.

  If you want to enable a site to use URLs that are more user-friendly and are optimized for search engines, a more robust alternative is to use ASP.NET routing. For more information, see ASP.NET Routing.

  Rewrites the URL using the given virtual path, path information, query string information, and a Boolean value that specifies whether the client file path is set to the rewrite path.

  The virtual path to the resource that services the request. Additional path information to use for the URL redirect. For more information, see . The request query string to use for the URL redirect. true to set the file path used for client resources to the value of the parameter; otherwise false.
- Property
  System.Web.HttpServerUtility To be added: an object of type 'HttpServerUtility'

  The property provides programmatic access to the properties and methods of the class. Because ASP.NET pages contain a default reference to the namespace (which contains the class), you can reference the members of on an .aspx page without using the fully qualified class reference to . For example, you can use Server.CreateObject("MyCOMComponent") to create an instance of a COM object on the server. However, if you want to use the members of from an ASP.NET code-behind module, you must include a reference to the namespace in the module and a fully qualified reference to both the currently active request/response context and the class in that you want to use. For example, in a code-behind page you must specify the fully qualified name HttpContext.Current.Server.CreateObject("MyCOMComponent").

  Gets the object that provides methods used in processing Web requests.

  1.0.5000.0
  2.0.0.0
- Property
  System.Web.SessionState.HttpSessionState To be added: an object of type 'SessionState.HttpSessionState'

  The property provides programmatic access to the properties and methods of the class.

  In order to use session state you have to enable it. For information about how to enable session state, see Configuring Session State in ASP.NET Session State Overview.

  For information about how to save values in session state, see How to: Save Values in Session State. For information about how to read values from session state, see How to: Read Values from Session State.

  Gets the object for the current HTTP request.

  1.0.5000.0
  2.0.0.0
- Property
  System.Boolean To be added: an object of type 'bool'

  The property is intended for advanced use by authentication modules that need to redirect to a page that allows anonymous connections. The Forms authentication module and Passport authentication module both set when redirecting to a configured logon page. Setting requires the ControlPrincipal flag to be set. For information about the ControlPrincipal flag, see .

  Gets or sets a value that specifies whether the object should skip the authorization check for the current request.

  1.0.5000.0
  2.0.0.0
- Method
  1.0.5000.0
  2.0.0.0
  System.Object ``

  This method is useful to gain access to the underlying object.

  Returns an object for the current service type.

  A ; otherwise, null if no service is found.

  A type of service to set the service provider to.
- Property
  System.DateTime To be added: an object of type 'DateTime'

  The timestamp returned from the property is the local time of the server and is set during the instantiation of the object. The local time is equal to the UTC time plus the UTC offset.

  Gets the initial timestamp of the current HTTP request.

  1.0.5000.0
  2.0.0.0
- Property
  System.Web.TraceContext To be added: an object of type 'TraceContext' To be added

  Gets the object for the current HTTP response.

  1.0.5000.0
  2.0.0.0
- Property
  System.Security.Principal.IPrincipal a

  The property provides programmatic access to the properties and methods of the interface.

  Because ASP.NET pages contain a default reference to the namespace (which contains the class), you can reference the members of on an .aspx page without using the fully qualified class reference to . For example, you can use User.Identity.Name to get the name of the user on whose behalf the current process is running. However, if you want to use the members of from an ASP.NET code-behind module, you must include a reference to the namespace in the module and a fully qualified reference to both the currently active request/response context and the class in that you want to use. For example, in a code-behind page you must specify the fully qualified name HttpContext.Current.User.Identity.Name.

  Gets or sets security information for the current HTTP request.

  1.0.5000.0
  2.0.0.0