AssemblyResourceLoader AssemblyResourceLoader AssemblyResourceLoader AssemblyResourceLoader Class

定義

提供 HTTP 處理常式,用以從組件載入內嵌的資源。Provides an HTTP handler used to load embedded resources from assemblies. 這個類別無法被繼承。This class cannot be inherited.

public ref class AssemblyResourceLoader sealed : System::Web::IHttpHandler
public sealed class AssemblyResourceLoader : System.Web.IHttpHandler
type AssemblyResourceLoader = class
    interface IHttpHandler
Public NotInheritable Class AssemblyResourceLoader
Implements IHttpHandler
繼承
AssemblyResourceLoaderAssemblyResourceLoaderAssemblyResourceLoaderAssemblyResourceLoader
實作

備註

AssemblyResourceLoader類別是可讓 ASP.NET 頁面或控制項載入內嵌的資源,例如用戶端指令碼、 影像和資料檔案,從已編譯的.NET 組件的 HTTP 處理常式。The AssemblyResourceLoader class is an HTTP handler that enables an ASP.NET page or control to load embedded resources, such as client script, images, and data files, from a compiled .NET assembly. 如需有關如何在.NET 組件中內嵌資源的詳細資訊,請參閱您使用編譯器的文件。For more information on how to embed resources in a .NET assembly, see the documentation for the compiler that you use.

AssemblyResourceLoader處理常式會對所產生的 Url 提出的要求回應GetWebResourceUrl方法。The AssemblyResourceLoader handler responds to requests made to URLs generated by the GetWebResourceUrl method. 然後再回應要求,AssemblyResourceLoader處理常式可確保,資源應該可直接透過網頁。Before responding to the request, the AssemblyResourceLoader handler ensures that the resource should be available directly over the Web.

處理常式回應格式的要求:The handler responds to requests of the form

WebResource.axd?d=<encrypted identifier>&t=<time stamp value>  

何處<encrypted identifier>唯一識別要求的 Web 資源和<time stamp value>的時間戳記為要求的組件,以便可以偵測到的組件的變更和快取的資源失效。where <encrypted identifier> uniquely identifies the requested Web resource and <time stamp value> is the time stamp for the requested assembly so that changes to the assembly can be detected and the cached resource invalidated.

此類別支援 ASP.NET 基礎結構,而且不是直接從您的程式碼使用。This class supports the ASP.NET infrastructure and is not intended to be used directly from your code.

建構函式

AssemblyResourceLoader() AssemblyResourceLoader() AssemblyResourceLoader() AssemblyResourceLoader()

初始化 AssemblyResourceLoader 類別的新執行個體。Initializes a new instance of the AssemblyResourceLoader class. 這個建構函式支援 ASP.NET 基礎結構,而且並不是要讓您直接從程式碼使用。This constructor supports the ASP.NET infrastructure and is not intended to be used directly from your code.

明確介面實作

IHttpHandler.IsReusable IHttpHandler.IsReusable IHttpHandler.IsReusable IHttpHandler.IsReusable

取得值,指出另一個要求能否重複使用 IHttpHandler 執行個體。Gets a value that indicates whether another request can reuse the IHttpHandler instance.

IHttpHandler.ProcessRequest(HttpContext) IHttpHandler.ProcessRequest(HttpContext) IHttpHandler.ProcessRequest(HttpContext) IHttpHandler.ProcessRequest(HttpContext)

如需這個成員的說明,請參閱 ProcessRequest(HttpContext)For a description of this member, see ProcessRequest(HttpContext).

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於

另請參閱