DiscoveryRequestHandler.ProcessRequest(HttpContext) DiscoveryRequestHandler.ProcessRequest(HttpContext) DiscoveryRequestHandler.ProcessRequest(HttpContext) DiscoveryRequestHandler.ProcessRequest(HttpContext) Method

定義

處理探索文件的 HTTP 要求,該文件會序列化到 HTTP 回應中。Handles an HTTP request for a discovery document, which is serialized to the HTTP response.

public:
 virtual void ProcessRequest(System::Web::HttpContext ^ context);
public void ProcessRequest (System.Web.HttpContext context);
abstract member ProcessRequest : System.Web.HttpContext -> unit
override this.ProcessRequest : System.Web.HttpContext -> unit
Public Sub ProcessRequest (context As HttpContext)

參數

context
HttpContext HttpContext HttpContext HttpContext

Request 類別的 ResponseHttpContext 屬性,分別用於輸入和輸出。The Request and Response properties of the HttpContext class are used for input and output, respectively.

實作

備註

ProcessRequest方法會在檔案系統路徑中搜尋對應于 HTTP 要求的統一資源定位器 (URL) 的適用檔案。The ProcessRequest method searches for applicable files within the file system path corresponding to the HTTP request's Uniform Resource Locator (URL). 搜尋可能會擴充到子目錄, 並根據它在根搜尋目錄中找到的內容來切換目標副檔名。The search may extend to subdirectories and switch target file extensions depending on what it finds in the root search directory.

搜尋程式會在DiscoveryDocument物件的References屬性中填入找到的檔案。The search process populates the DiscoveryDocument object's References property with files that are found.

適用於