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.

適用於