System.Web Namespace

System.Web 命名空间提供使得可以进行浏览器与服务器通信的类和接口。 The System.Web namespace supplies classes and interfaces that enable browser-server communication. 此命名空间包括 HttpRequest 类(用于提供有关当前 HTTP 请求的广泛信息)、 HttpResponse 类(用于管理输出到客户端的 HTTP 输出)以及 HttpServerUtility 类(用于提供对服务器端实用工具与进程的访问)。 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 还包括用于 Cookie 操作、文件传输、异常信息和输出缓存控制的类。 System.Web also includes classes for cookie manipulation, file transfer, exception information, and output cache control.

AspNetHostingPermission

ASP.NET 寄宿的环境中的控件访问权限。Controls access permissions in ASP.NET hosted environments. 此类不能被继承。This class cannot be inherited.

AspNetHostingPermissionAttribute

允许对要使用声明性安全应用到代码中的 AspNetHostingPermission 执行安全操作。Allows security actions for AspNetHostingPermission to be applied to code using declarative security. 此类不能被继承。This class cannot be inherited.

DefaultHttpHandler

表示默认 HTTP 处理程序的属性和方法。Represents the properties and methods of a default HTTP handler.

EventHandlerTaskAsyncHelper

将任务返回的异步方法转换为使用用于 ASP.NET 的前一版本的异步编程模型和基于启动和结束事件的方法。Converts 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.

HtmlString

表示不应再次进行编码的 HTML 编码的字符串。Represents an HTML-encoded string that should not be encoded again.

HttpApplication

定义对 ASP.NET 应用程序内所有应用程序对象公用的方法、属性和事件。Defines the methods, properties, and events that are common to all application objects in an ASP.NET application. 此类是用户在 Global.asax 文件中定义的应用程序的基类。This class is the base class for applications that are defined by the user in the Global.asax file.

HttpApplicationState

允许共享 ASP.NET 应用程序内多个会话和请求之间的全局信息。Enables sharing of global information across multiple sessions and requests within an ASP.NET application.

HttpApplicationStateBase

用作一些类的基类,这些类可实现在 ASP.NET 应用程序内跨多个会话和请求共享信息。Serves as the base class for classes that enable information to be shared across multiple sessions and requests within an ASP.NET application.

HttpApplicationStateWrapper

封装可用于在 ASP.NET 应用程序内多个请求和会话间共享信息的 HTTP 内部对象。Encapsulates the HTTP intrinsic object that enables information to be shared across multiple requests and sessions within an ASP.NET application.

HttpBrowserCapabilities

使服务器能够收集有关在客户端运行的浏览器功能的信息。Enables the server to gather information on the capabilities of the browser that is running on the client.

HttpBrowserCapabilitiesBase

用作一些类的基类,这些类使服务器可以收集发出当前请求的浏览器的功能相关信息。Serves as the base class for classes that enable the server to gather information about the capabilities of the browser that made the current request.

HttpBrowserCapabilitiesWrapper

封装 HTTP 内部对象,该对象使服务器可以收集发出当前请求的浏览器的功能相关信息。Encapsulates the HTTP intrinsic object that enables the server to gather information about the capabilities of the browser that has made the current request.

HttpCachePolicy

包含可用于设置特定于缓存的 HTTP 标头以及用于控制 ASP.NET 页输出缓存的方法。Contains methods for setting cache-specific HTTP headers and for controlling the ASP.NET page output cache.

HttpCachePolicyBase

作为某些类的基类,这些类用于设置特定于缓存的 HTTP 头和控制 ASP.NET 页面输出缓存。Serves as the base class for classes that contain methods for setting cache-specific HTTP headers and for controlling the ASP.NET page output cache.

HttpCachePolicyWrapper

封装 HTTP 内部对象,该对象包含的方法可用于设置特定于缓存的 HTTP 标头以及用于控制 ASP.NET 页输出缓存。Encapsulates the HTTP intrinsic object that contains methods for setting cache-specific HTTP headers and for controlling the ASP.NET page output cache.

HttpCacheVaryByContentEncodings

提供一种类型安全的方式来设置 HttpCachePolicy 类的 VaryByContentEncodings 属性。Provides a type-safe way to set the VaryByContentEncodings property of the HttpCachePolicy class.

HttpCacheVaryByHeaders

提供一种类型安全的方式来设置 VaryByHeaders 属性。Provides a type-safe way to set the VaryByHeaders property.

HttpCacheVaryByParams

提供一种类型安全的方式来设置 VaryByParams 属性。Provides a type-safe way to set the VaryByParams property.

HttpClientCertificate

提供客户端为响应服务器的客户端标识请求而颁发的客户端证书字段。Provides the client certificate fields issued by the client in response to the server's request for the client's identity.

HttpCompileException

当发生编辑器错误时引发的异常。The exception that is thrown when a compiler error occurs.

HttpContext

封装有关个别 HTTP 请求的所有 HTTP 特定的信息。Encapsulates all HTTP-specific information about an individual HTTP request.

HttpContextBase

为包含有关单个 HTTP 请求的 HTTP 特定信息的类充当基类。Serves as the base class for classes that contain HTTP-specific information about an individual HTTP request.

HttpContextWrapper

封装包含有关单个 HTTP 请求的 HTTP 特定信息的 HTTP 内部对象。Encapsulates the HTTP intrinsic object that contains HTTP-specific information about an individual HTTP request.

HttpCookie

提供创建和操作各 HTTP Cookie 的类型安全方法。Provides a type-safe way to create and manipulate individual HTTP cookies.

HttpCookieCollection

提供用于操作 HTTP cookie 的类型安全方式。Provides a type-safe way to manipulate HTTP cookies.

HttpException

描述在处理 HTTP 请求期间发生的异常。Describes an exception that occurred during the processing of HTTP requests.

HttpFileCollection

提供对由客户端上载的文件的访问权限,并组织这些文件。Provides access to and organizes files uploaded by a client.

HttpFileCollectionBase

用作一些类的基类,这些类提供对客户端已上载的文件的访问。Serves as the base class for classes that provide access to files that were uploaded by a client.

HttpFileCollectionWrapper

封装 HTTP 内部对象,它提供对客户端已上载文件的访问。Encapsulates the HTTP intrinsic object that provides access to files that were uploaded by a client.

HttpModuleCollection

提供一种方法,用以索引并检索 IHttpModule 对象的集合。Provides a way to index and retrieve a collection of IHttpModule objects.

HttpParseException

发生分析错误时引发的异常。The exception that is thrown when a parse error occurs.

HttpPostedFile

提供对客户端已上载的单独文件的访问。Provides access to individual files that have been uploaded by a client.

HttpPostedFileBase

用作某种类的基类,前者提供对已由客户端上载的单个文件的访问。Serves as the base class for classes that provide access to individual files that have been uploaded by a client.

HttpPostedFileWrapper

封装 HTTP 固有对象,通过它可以访问客户端上载的各个文件。Encapsulates the HTTP intrinsic object that provides access to individual files that have been uploaded by a client.

HttpRequest

Enables ASP.NET to read the HTTP values sent by a client during a Web request.Enables ASP.NET to read the HTTP values sent by a client during a Web request.

HttpRequestBase

Serves as the base class for classes that enable ASP.NET to read the HTTP values sent by a client during a Web request.Serves as the base class for classes that enable ASP.NET to read the HTTP values sent by a client during a Web request.

HttpRequestValidationException

从客户端收到作为请求数据一部分的潜在恶意输入字符串时引发的异常。The 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.

HttpRequestWrapper

Encapsulates the HTTP intrinsic object that enables ASP.NET to read the HTTP values that are sent by a client during a Web request.Encapsulates the HTTP intrinsic object that enables ASP.NET to read the HTTP values that are sent by a client during a Web request.

HttpResponse

封装来自 ASP.NET 操作的 HTTP 响应信息。Encapsulates HTTP-response information from an ASP.NET operation.

HttpResponseBase

表示一些类的基类,可提供来自 ASP.NET 操作的 HTTP 响应信息。Represents the base class for classes that provides HTTP-response information from an ASP.NET operation.

HttpResponseWrapper

封装 HTTP 内部对象,该对象提供来自 ASP.NET 操作的 HTTP 响应信息。Encapsulates the HTTP intrinsic object that provides HTTP-response information from an ASP.NET operation.

HttpRuntime

为当前应用程序提供一组 ASP.NET 运行时服务。Provides a set of ASP.NET run-time services for the current application.

HttpServerUtility

提供用于处理 Web 请求的 Helper 方法。Provides helper methods for processing Web requests.

HttpServerUtilityBase

充当类的基类,前者提供用于处理 Web 请求的 helper 方法。Serves as the base class for classes that provide helper methods for processing Web requests.

HttpServerUtilityWrapper

封装 HTTP 内部对象,该对象提供帮助器方法用于处理 Web 请求。Encapsulates the HTTP intrinsic object that provides helper methods for processing Web requests.

HttpSessionStateBase

用作一些类的基类,可提供对会话状态值、会话级别设置以及生存期管理方法的访问。Serves as the base class for classes that provides access to session-state values, session-level settings, and lifetime management methods.

HttpSessionStateWrapper

封装 HTTP 内部对象,该对象提供对会话状态值、会话级别设置和生存期管理方法的访问。Encapsulates the HTTP intrinsic object that provides access to session-state values, session-level settings, and lifetime management methods.

HttpStaticObjectsCollection

StaticObjects 属性提供应用程序范围内的对象的集合。Provides a collection of application-scoped objects for the StaticObjects property.

HttpStaticObjectsCollectionBase

作为提供 StaticObjects 属性的应用程序范围对象的集合的类的基类。Serves as the base class for classes that provide a collection of application-scoped objects for the StaticObjects property.

HttpStaticObjectsCollectionWrapper

封装为 StaticObjects 属性提供应用程序范围的对象的集合的 HTTP 内部对象。Encapsulates the HTTP intrinsic object that provides a collection of application-scoped objects for the StaticObjects property.

HttpTaskAsyncHandler

提供方法,派生的任务处理程序类可实施该方法以处理异步任务。Provides methods that a derived task handler class can implement in order to process an asynchronous task.

HttpUnhandledException

发生一般异常时引发的异常。The exception that is thrown when a generic exception occurs.

HttpUtility

提供用于在处理 Web 请求时编码和解码 URL 的方法。Provides methods for encoding and decoding URLs when processing Web requests. 此类不能被继承。This class cannot be inherited.

HttpWorkerRequest

此抽象类定义由 ASP.NET 托管代码用于处理请求的基本辅助方法和枚举。This abstract class defines the base worker methods and enumerations used by ASP.NET managed code to process requests.

HttpWriter

提供通过内部 TextWriter 对象访问的 HttpResponse 对象。Provides a TextWriter object that is accessed through the intrinsic HttpResponse object.

IisTraceListener

提供一个将所有跟踪和调试输出路由到 IIS 7.0 基础结构的侦听器。Provides a listener that routes all tracing and debugging output to the IIS 7.0 infrastructure.

MimeMapping

映射文档扩展至内容 MIME 类型。Maps document extensions to content MIME types.

ParserError

表示分析器错误或警告。Represents a parser error or warning. 此类不能被继承。This class cannot be inherited.

ParserErrorCollection

管理分析过程中检测到的一组分析器错误。Manages a set of parser errors detected during parsing. 此类不能被继承。This class cannot be inherited.

PreApplicationStartMethodAttribute

提供对应用程序启动的扩展支持。Provides expanded support for application startup.

ProcessInfo

提供有关当前正在执行的进程的信息。Provides information on processes currently executing.

ProcessModelInfo

包含用于返回有关辅助进程的信息的方法。Contains methods that return information about worker processes.

SiteMap

SiteMap 类是站点的导航结构在内存中的表示形式,导航结构由一个或多个站点地图提供程序提供。The 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.

SiteMapNode

表示分层站点地图结构中的节点,例如 SiteMap 类和实现抽象 SiteMapProvider 类的类所描述的节点。Represents a node in the hierarchical site map structure such as that described by the SiteMap class and classes that implement the abstract SiteMapProvider class.

SiteMapNodeCollection

提供 SiteMapNode 对象的强类型化集合,并实现 IHierarchicalEnumerable 接口以支持在该集合中进行导航。Provides a strongly typed collection for SiteMapNode objects and implements the IHierarchicalEnumerable interface to support navigating through the collection.

SiteMapProvider

为所有站点地图数据提供程序提供公共基类,并为开发人员提供一条实现自定义站点地图数据提供程序的途径,这些提供程序可与 ASP.NET 站点地图基础结构一起用作 SiteMap 对象的持久存储区。Provides 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.

SiteMapProviderCollection

SiteMap 类用于跟踪在站点地图初始化期间对 SiteMapProvider 可用的 SiteMap 对象集。Used 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.

SiteMapResolveEventArgs

为通过调用 CurrentNode 类的 SiteMapProvider 属性引发的事件提供数据。Provides data for an event that is raised by calling the CurrentNode property of the SiteMapProvider class.

StaticSiteMapProvider

作为 SiteMapProvider 抽象类的部分实现和 XmlSiteMapProvider 类(它是 ASP.NET 中的默认站点地图提供程序)的基类。Serves 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.

TraceContext

捕获并提供有关 Web 请求的执行详细信息。Captures and presents execution details about a Web request. 此类不能被继承。This class cannot be inherited.

TraceContextEventArgs

向所有处理 TraceFinished 事件的方法提供跟踪记录的集合。Provides a collection of trace records to any method that handles the TraceFinished event. 此类不能被继承。This class cannot be inherited.

TraceContextRecord

表示 ASP.NET 跟踪消息和任何关联数据。Represents an ASP.NET trace message and any associated data.

UnvalidatedRequestValues

提供对 HTTP 请求值的访问权限,不触发 ASP.NET 请求验证。Provides access to HTTP request values without triggering ASP.NET request validation.

UnvalidatedRequestValuesBase

为提供对 HTTP 请求值的权限的类提供基类,不触发 ASP.NET 请求验证。Serves as the base class for classes that provide access to HTTP request values without triggering ASP.NET request validation.

UnvalidatedRequestValuesWrapper

UnvalidatedRequestValuesBase 类提供包装类,并提供对 HTTP 请求值的访问权限,不触发 ASP.NET 请求验证。Provides a wrapper class for the UnvalidatedRequestValuesBase class, and provides access to HTTP request values without triggering ASP.NET request validation.

VirtualPathUtility

为常见的虚拟路径操作提供实用工具方法。Provides utility methods for common virtual path operations.

WebPageTraceListener

提供一个将 Trace 消息定向到 ASP.NET 网页输出的侦听器。Provides a listener that directs Trace messages to ASP.NET Web page outputs.

XmlSiteMapProvider

XmlSiteMapProvider 类是从 SiteMapProvider 类派生的,并且是 ASP.NET 的默认站点地图提供者。The XmlSiteMapProvider class is derived from the SiteMapProvider class and is the default site map provider for ASP.NET. XmlSiteMapProvider 类根据文件扩展名为 .sitemap 的 XML 文件生成站点地图树。The XmlSiteMapProvider class generates site map trees from XML files with the file name extension .sitemap.

接口

IHtmlString

表示不应再次进行编码的 HTML 编码的字符串。Represents an HTML-encoded string that should not be encoded again.

IHttpAsyncHandler

定义 HTTP 异步处理程序对象必须实现的协定。Defines the contract that HTTP asynchronous handler objects must implement.

IHttpHandler

定义 ASP.NET 为使用自定义 HTTP 处理程序同步处理 HTTP Web 请求而实现的协定。Defines the contract that ASP.NET implements to synchronously process HTTP Web requests using custom HTTP handlers.

IHttpHandlerFactory

定义类工厂为创建新的 IHttpHandler 对象而必须实现的协定。Defines the contract that class factories must implement to create new IHttpHandler objects.

IHttpModule

提供模块初始化和处置事件以实现类。Provides module initialization and disposal events to the implementing class.

IPartitionResolver

定义必须实现的方法,这些方法用于自定义的会话状态分区解析。Defines methods that must be implemented for custom session-state partition resolution.

ISubscriptionToken

表示接口,其由对象执行,并且可用于取消订阅监听程序。Represents an interface that is implemented by an object and that can be used to unsubscribe listeners.

ITlsTokenBindingInfo

提供有关传输层安全性(TLS)标记绑定的信息。Provides information about transport layer security (TLS) token binding.

枚举

ApplicationShutdownReason

指定 AppDomain 类为何关闭。Specifies why the AppDomain class shut down.

AspNetHostingPermissionLevel

指定授予 ASP.NET Web 应用程序的信任级别。Specifies the trust level that is granted to an ASP.NET Web application.

HttpCacheability

提供用于设置 Cache-Control HTTP 标头的枚举值。Provides enumerated values that are used to set the Cache-Control HTTP header.

HttpCacheRevalidation

提供用于设置重新验证特定的 Cache-Control HTTP 标头的枚举值。Provides enumerated values that are used to set revalidation-specific Cache-Control HTTP headers.

HttpCookieMode

指定如何将 Cookie 用于 Web 应用程序。Specifies how cookies are used for a Web application.

HttpValidationStatus

提供指示缓存验证状态的枚举值。Provides enumerated values that indicate cache validation status.

ProcessShutdownReason

提供指示进程关闭原因的枚举值。Provides enumerated values that indicate why a process has shut down.

ProcessStatus

提供指示进程当前状态的枚举值。Provides enumerated values that indicate the current status of a process.

ReadEntityBodyMode

指定 HTTP 请求的实体正文如何读取的常数。Specifies constants that indicate how the entity body of an HTTP request has been read.

RequestNotification

指示处理 HttpApplication 请求期间发生事件和其他生命周期事件的时间。Indicates when events and other life-cycle events occur while a HttpApplication request is being processed.

RequestNotificationStatus

指定请求管线中通知的状态。Specifies the state of a notification in the request pipeline.

SameSiteMode

指定指示 cookie 的 SameSite 属性值的常数。Specifies constants that indicate the value for the SameSite attribute of the cookie.

TraceMode

指定跟踪消息发出到页的 HTML 输出中所采用的顺序。Specifies in what order trace messages are emitted into the HTML output of a page.

委托

BeginEventHandler

表示处理异步事件(如应用程序事件)的方法。Represents the method that handles asynchronous events such as application events. 此委托在异步操作开始时调用。This delegate is called at the start of an asynchronous operation.

EndEventHandler

表示处理异步事件(如应用程序事件)的方法。Represents the method that handles asynchronous events such as application events.

HttpCacheValidateHandler

表示一个方法,在从缓存提供某个缓存项之前将调用该方法来验证该项。Represents a method that is called to validate a cached item before the item is served from the cache.

HttpResponseSubstitutionCallback

表示处理缓存后替换的方法。Represents the method that handles post-cache substitution.

HttpWorkerRequest.EndOfSendNotification

表示用于在完成发送响应后通知调用方的方法。Represents the method that Notifies callers when sending of the response is complete.

SiteMapResolveEventHandler

表示的方法将用于处理 SiteMapResolve 或静态 SiteMapProvider 类的特定实例的 SiteMap 事件。Represents the method that will handle the SiteMapResolve event of a specific instance of the SiteMapProvider or static SiteMap class.

TaskEventHandler

表示要由 EventHandlerTaskAsyncHelper 类的实例处理的异步任务。Represents the asynchronous task that is being processed by an instance of the EventHandlerTaskAsyncHelper class.

TraceContextEventHandler

表示处理 TraceFinished 对象的 TraceContext 事件的方法。Represents the method that handles the TraceFinished event of a TraceContext object.