HttpRuntime Class
Provides a set of ASP.NET run-time services for the current application.
Assembly: System.Web (in System.Web.dll)
| Name | Description | |
|---|---|---|
![]() | HttpRuntime() | Initializes a new instance of the HttpRuntime class. |
| Name | Description | |
|---|---|---|
![]() ![]() | AppDomainAppId | Gets the application identification of the application domain where the HttpRuntime exists. |
![]() ![]() | AppDomainAppPath | Gets the physical drive path of the application directory for the application hosted in the current application domain. |
![]() ![]() | AppDomainAppVirtualPath | Gets the virtual path of the directory that contains the application hosted in the current application domain. |
![]() ![]() | AppDomainId | Gets the domain identification of the application domain where the HttpRuntime instance exists. |
![]() ![]() | AspClientScriptPhysicalPath | Gets the folder path for the ASP.NET client script files. |
![]() ![]() | AspClientScriptVirtualPath | Gets the virtual path for the ASP.NET client script files. |
![]() ![]() | AspInstallDirectory | Gets the physical path of the directory where the ASP.NET executable files are installed. |
![]() ![]() | BinDirectory | Gets the physical path to the /bin directory for the current application. |
![]() ![]() | Cache | Gets the Cache for the current application. |
![]() ![]() | ClrInstallDirectory | Gets the physical path to the directory where the common language runtime executable files are installed. |
![]() ![]() | CodegenDir | Gets the physical path to the directory where ASP.NET stores temporary files (generated sources, compiled assemblies, and so on) for the current application. |
![]() ![]() | IISVersion | Gets the version of IIS that is hosting this application. |
![]() ![]() | IsOnUNCShare | Gets a value that indicates whether the application is mapped to a universal naming convention (UNC) share. |
![]() ![]() | MachineConfigurationDirectory | Gets the physical path to the directory where the Machine.config file for the current application is located. |
![]() ![]() | TargetFramework | Gets the version of the .NET Framework that the current web application targets. |
![]() ![]() | UsingIntegratedPipeline | Gets a value that indicates whether the current application is running in the integrated-pipeline mode of IIS 7.0. |
| Name | Description | |
|---|---|---|
![]() ![]() | Close() | Shuts down the HttpRuntime instance. |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() ![]() | GetNamedPermissionSet() | This API supports the product infrastructure and is not intended to be used directly from your code. Returns the set of permissions associated with code groups. |
![]() | GetType() | |
![]() ![]() | ProcessRequest(HttpWorkerRequest) | Drives all ASP.NET Web processing execution. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() ![]() | UnloadAppDomain() | Terminates the current application. The application restarts the next time a request is received for it. |
The HttpRuntime object is used at the beginning of the ASP.NET pipeline model that processes HTTP requests. The ProcessRequest method drives all subsequent ASP.NET Web processing.
Page developers can use the HttpRuntime class properties to find out information about the current application domain for diagnostic purposes, for example. Developers creating custom process pipeline or a custom hosting environment should call the ProcessRequest method from a class derived from the HttpWorkerRequest or SimpleWorkerRequest class.
Available since 1.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


