System.Web Namespace

System.Web 命名空間提供類別和介面,以啟用瀏覽器和伺服器之間的通訊。 The System.Web namespace supplies classes and interfaces that enable browser-server communication. 這個命名空間包含提供目前 HTTP 要求的大量資訊的 HttpRequest 類別、管理對用戶端輸出之 HTTP 的 HttpResponse 類別,和提供伺服器端公用程式和處理的存取的 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

做為類別的基底類別 (Base Class),這個類別可以讓 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

封裝 HTTP 內建物件,這個物件可以讓 ASP.NET 應用程式中的多個要求和工作階段共用資訊。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

做為類別的基底類別 (Base Class),這些類別可讓伺服器收集有關發出目前要求的瀏覽器能力的資訊。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

做為類別的基底類別 (Base Class),這些類別包含用來設定快取專用 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

提供型別安全 (Type-Safe) 方式來建立並操作個別 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

允許 ASP.NET 在 Web 要求期間讀取用戶端送出的 HTTP 值。Enables ASP.NET to read the HTTP values sent by a client during a Web request.

HttpRequestBase

做為類別的基底類別 (Base Class),這些類別可讓 ASP.NET 讀取用戶端在 Web 要求期間傳送的 HTTP 值。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

封裝 HTTP 內建物件,此物件可讓 ASP.NET 讀取用戶端在 Web 要求期間傳送的 HTTP 值。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

代表類別的基底類別 (Base Class),這些類別提供來自 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 Run-Time 服務。Provides a set of ASP.NET run-time services for the current application.

HttpServerUtility

提供 Helper 方法以處理 Web 要求。Provides helper methods for processing Web requests.

HttpServerUtilityBase

做為類別的基底類別 (Base Class),這些類別提供用來處理 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

做為類別的基底類別 (Base Class),這些類別可以為 StaticObjects 屬性提供應用程式範圍的物件之集合。Serves as the base class for classes that provide a collection of application-scoped objects for the StaticObjects property.

HttpStaticObjectsCollectionWrapper

封裝 HTTP 內建物件,這個物件提供 StaticObjects 屬性之應用程式範圍之物件的集合。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 Managed 程式碼處理要求所使用的基底背景工作方法和列舉類型 (Enumeration)。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

表示剖析器 (Parser) 錯誤或警告。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 類別的部分實作,以及做為 ASP.NET 預設網站導覽提供者 XmlSiteMapProvider 類別的基底類別。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

定義 Class Factory 所必須實作的合約,以建立新的 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

提供列舉值,以指示為什麼處理序 (Process) 已經關閉。Provides enumerated values that indicate why a process has shut down.

ProcessStatus

提供列舉值,以指示處理序 (Process) 的目前狀態。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

指定發出追蹤訊息 (Trace Message) 至網頁之 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. 這個委派 (Delegate) 是在非同步操作的開始呼叫。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.