Skip to main content
.NET Framework Class Library
System.Web Namespace

The System.Web namespace supplies classes and interfaces that enable browser-server communication. This namespace includes the HttpRequest class, which provides extensive information about the current HTTP request; the HttpResponse class, which manages HTTP output to the client; and the HttpServerUtility class, which provides access to server-side utilities and processes. System.Web also includes classes for cookie manipulation, file transfer, exception information, and output cache control.

Classes
  ClassDescription
Public class AspNetHostingPermissionControls access permissions in ASP.NET hosted environments. This class cannot be inherited.
Public class AspNetHostingPermissionAttributeAllows security actions for AspNetHostingPermission to be applied to code using declarative security. This class cannot be inherited.
Public class DefaultHttpHandlerRepresents the properties and methods of a default HTTP handler.
Public class EventHandlerTaskAsyncHelperConverts task-returning asynchronous methods into methods that use the asynchronous programming model used in previous versions of ASP.NET and that is based on begin and end events.
Public class HtmlStringRepresents an HTML-encoded string that should not be encoded again.
Public class HttpApplicationDefines the methods, properties, and events that are common to all application objects in an ASP.NET application. This class is the base class for applications that are defined by the user in the Global.asax file.
Public class HttpApplicationStateEnables sharing of global information across multiple sessions and requests within an ASP.NET application.
Public class HttpApplicationStateBaseServes as the base class for classes that enable information to be shared across multiple sessions and requests within an ASP.NET application.
Public class HttpApplicationStateWrapperEncapsulates the HTTP intrinsic object that enables information to be shared across multiple requests and sessions within an ASP.NET application.
Public class HttpBrowserCapabilitiesEnables the server to gather information on the capabilities of the browser that is running on the client.
Public class HttpBrowserCapabilitiesBaseServes as the base class for classes that enable the server to gather information about the capabilities of the browser that made the current request.
Public class HttpBrowserCapabilitiesWrapperEncapsulates the HTTP intrinsic object that enables the server to gather information about the capabilities of the browser that has made the current request.
Public class HttpCachePolicyContains methods for setting cache-specific HTTP headers and for controlling the ASP.NET page output cache.
Public class HttpCachePolicyBaseServes as the base class for classes that contain methods for setting cache-specific HTTP headers and for controlling the ASP.NET page output cache.
Public class HttpCachePolicyWrapperEncapsulates the HTTP intrinsic object that contains methods for setting cache-specific HTTP headers and for controlling the ASP.NET page output cache.
Public class HttpCacheVaryByContentEncodingsProvides a type-safe way to set the VaryByContentEncodings property of the HttpCachePolicy class.
Public class HttpCacheVaryByHeadersProvides a type-safe way to set the VaryByHeaders property.
Public class HttpCacheVaryByParamsProvides a type-safe way to set the VaryByParams property.
Public class HttpClientCertificateProvides the client certificate fields issued by the client in response to the server's request for the client's identity.
Public class HttpCompileExceptionThe exception that is thrown when a compiler error occurs.
Public class HttpContextEncapsulates all HTTP-specific information about an individual HTTP request.
Public class HttpContextBaseServes as the base class for classes that contain HTTP-specific information about an individual HTTP request.
Public class HttpContextWrapperEncapsulates the HTTP intrinsic object that contains HTTP-specific information about an individual HTTP request.
Public class HttpCookieProvides a type-safe way to create and manipulate individual HTTP cookies.
Public class HttpCookieCollectionProvides a type-safe way to manipulate HTTP cookies.
Public class HttpExceptionDescribes an exception that occurred during the processing of HTTP requests.
Public class HttpFileCollectionProvides access to and organizes files uploaded by a client.
Public class HttpFileCollectionBaseServes as the base class for classes that provide access to files that were uploaded by a client.
Public class HttpFileCollectionWrapperEncapsulates the HTTP intrinsic object that provides access to files that were uploaded by a client.
Public class HttpModuleCollectionProvides a way to index and retrieve a collection of IHttpModule objects.
Public class HttpParseExceptionThe exception that is thrown when a parse error occurs.
Public class HttpPostedFileProvides access to individual files that have been uploaded by a client.
Public class HttpPostedFileBaseServes as the base class for classes that provide access to individual files that have been uploaded by a client.
Public class HttpPostedFileWrapperEncapsulates the HTTP intrinsic object that provides access to individual files that have been uploaded by a client.
Public class HttpRequestEnables ASP.NET to read the HTTP values sent by a client during a Web request.
Public class HttpRequestBaseServes as the base class for classes that enable ASP.NET to read the HTTP values sent by a client during a Web request.
Public class HttpRequestValidationExceptionThe exception that is thrown when a potentially malicious input string is received from the client as part of the request data. This class cannot be inherited.
Public class HttpRequestWrapperEncapsulates the HTTP intrinsic object that enables ASP.NET to read the HTTP values that are sent by a client during a Web request.
Public class HttpResponseEncapsulates HTTP-response information from an ASP.NET operation.
Public class HttpResponseBaseServes as the base class for classes that provides HTTP-response information from an ASP.NET operation.
Public class HttpResponseWrapperEncapsulates the HTTP intrinsic object that provides HTTP-response information from an ASP.NET operation.
Public class HttpRuntimeProvides a set of ASP.NET run-time services for the current application.
Public class HttpServerUtilityProvides helper methods for processing Web requests.
Public class HttpServerUtilityBaseServes as the base class for classes that provide helper methods for processing Web requests.
Public class HttpServerUtilityWrapperEncapsulates the HTTP intrinsic object that provides helper methods for processing Web requests.
Public class HttpSessionStateBaseServes as the base class for classes that provides access to session-state values, session-level settings, and lifetime management methods.
Public class HttpSessionStateWrapperEncapsulates the HTTP intrinsic object that provides access to session-state values, session-level settings, and lifetime management methods.
Public class HttpStaticObjectsCollectionProvides a collection of application-scoped objects for the StaticObjects property.
Public class HttpStaticObjectsCollectionBaseServes as the base class for classes that provide a collection of application-scoped objects for the StaticObjects property.
Public class HttpStaticObjectsCollectionWrapperEncapsulates the HTTP intrinsic object that provides a collection of application-scoped objects for the StaticObjects property.
Public class HttpTaskAsyncHandlerProvides methods that a derived task handler class can implement in order to process an asynchronous task.
Public class HttpUnhandledExceptionThe exception that is thrown when a generic exception occurs.
Public class HttpUtilityProvides methods for encoding and decoding URLs when processing Web requests. This class cannot be inherited.
Public class HttpWorkerRequestThis abstract class defines the base worker methods and enumerations used by ASP.NET managed code to process requests.
Public class HttpWriterProvides a TextWriter object that is accessed through the intrinsic HttpResponse object.
Public class IisTraceListenerProvides a listener that routes all tracing and debugging output to the IIS 7.0 infrastructure.
Public class MimeMappingMaps document extensions to content MIME types.
Public class ParserErrorRepresents a parser error or warning. This class cannot be inherited.
Public class ParserErrorCollectionManages a set of parser errors detected during parsing. This class cannot be inherited.
Public class PreApplicationStartMethodAttributeProvides expanded support for application startup.
Public class ProcessInfoProvides information on processes currently executing.
Public class ProcessModelInfoContains methods that return information about worker processes.
Public class SiteMapThe SiteMap class is an in-memory representation of the navigation structure for a site, which is provided by one or more site map providers. This class cannot be inherited.
Public class SiteMapNodeRepresents a node in the hierarchical site map structure such as that described by the SiteMap class and classes that implement the abstract SiteMapProvider class.
Public class SiteMapNodeCollectionProvides a strongly typed collection for SiteMapNode objects and implements the IHierarchicalEnumerable interface to support navigating through the collection.
Public class SiteMapProviderProvides a common base class for all site map data providers, and a way for developers to implement custom site map data providers that can be used with the ASP.NET site map infrastructure as persistent stores for SiteMap objects.
Public class SiteMapProviderCollectionUsed by the SiteMap class to track the set of SiteMapProvider objects that are available to the SiteMap during site map initialization. This class cannot be inherited.
Public class SiteMapResolveEventArgsProvides data for an event that is raised by calling the CurrentNode property of the SiteMapProvider class.
Public class StaticSiteMapProviderServes as a partial implementation of the abstract SiteMapProvider class and serves as a base class for the XmlSiteMapProvider class, which is the default site map provider in ASP.NET.
Public class TraceContextCaptures and presents execution details about a Web request. This class cannot be inherited.
Public class TraceContextEventArgsProvides a collection of trace records to any method that handles the TraceFinished event. This class cannot be inherited.
Public class TraceContextRecordRepresents an ASP.NET trace message and any associated data.
Public class UnvalidatedRequestValuesProvides access to HTTP request values without triggering ASP.NET request validation.
Public class UnvalidatedRequestValuesBaseServes as the base class for classes that provide access to HTTP request values without triggering ASP.NET request validation.
Public class UnvalidatedRequestValuesWrapperProvides a wrapper class for the UnvalidatedRequestValuesBase class, and provides access to HTTP request values without triggering ASP.NET request validation.
Public class VirtualPathUtilityProvides utility methods for common virtual path operations.
Public class WebPageTraceListenerProvides a listener that directs Trace messages to ASP.NET Web page outputs.
Public class XmlSiteMapProviderThe XmlSiteMapProvider class is derived from the SiteMapProvider class and is the default site map provider for ASP.NET. The XmlSiteMapProvider class generates site map trees from XML files with the file name extension .sitemap.
Interfaces
  InterfaceDescription
Public interface IHtmlStringRepresents an HTML-encoded string that should not be encoded again.
Public interface IHttpAsyncHandlerDefines the contract that HTTP asynchronous handler objects must implement.
Public interface IHttpHandlerDefines the contract that ASP.NET implements to synchronously process HTTP Web requests using custom HTTP handlers.
Public interface IHttpHandlerFactoryDefines the contract that class factories must implement to create new IHttpHandler objects.
Public interface IHttpModuleProvides module initialization and disposal events to the implementing class.
Public interface IPartitionResolverDefines methods that must be implemented for custom session-state partition resolution.
Public interface ISubscriptionTokenRepresents an interface that is implemented by an object and that can be used to unsubscribe listeners.
Delegates
  DelegateDescription
Public delegate BeginEventHandlerRepresents the method that handles asynchronous events such as application events. This delegate is called at the start of an asynchronous operation.
Public delegate EndEventHandlerRepresents the method that handles asynchronous events such as application events.
Public delegate HttpCacheValidateHandlerRepresents a method that is called to validate a cached item before the item is served from the cache.
Public delegate HttpResponseSubstitutionCallbackRepresents the method that handles post-cache substitution.
Public delegate HttpWorkerRequestEndOfSendNotificationRepresents the method that Notifies callers when sending of the response is complete.
Public delegate SiteMapResolveEventHandlerRepresents the method that will handle the SiteMapResolve event of a specific instance of the SiteMapProvider or static SiteMap class.
Public delegate TaskEventHandlerRepresents the asynchronous task that is being processed by an instance of the EventHandlerTaskAsyncHelper class.
Public delegate TraceContextEventHandlerRepresents the method that handles the TraceFinished event of a TraceContext object.
Enumerations
  EnumerationDescription
Public enumeration ApplicationShutdownReasonSpecifies why the AppDomain class shut down.
Public enumeration AspNetHostingPermissionLevelSpecifies the trust level that is granted to an ASP.NET Web application.
Public enumeration HttpCacheabilityProvides enumerated values that are used to set the Cache-Control HTTP header.
Public enumeration HttpCacheRevalidationProvides enumerated values that are used to set revalidation-specific Cache-Control HTTP headers.
Public enumeration HttpCookieModeSpecifies how cookies are used for a Web application.
Public enumeration HttpValidationStatusProvides enumerated values that indicate cache validation status.
Public enumeration ProcessShutdownReasonProvides enumerated values that indicate why a process has shut down.
Public enumeration ProcessStatusProvides enumerated values that indicate the current status of a process.
Public enumeration ReadEntityBodyModeSpecifies constants that indicate how the entity body of an HTTP request has been read.
Public enumeration RequestNotificationIndicates when events and other life-cycle events occur while a HttpApplication request is being processed.
Public enumeration RequestNotificationStatusInfrastructure. Specifies the state of a notification in the request pipeline.
Public enumeration TraceModeSpecifies in what order trace messages are emitted into the HTML output of a page.