AssemblyResourceLoader 类
定义
提供用于从程序集加载嵌入的资源的 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
- 继承
-
AssemblyResourceLoader
- 实现
注解
AssemblyResourceLoader类是一个 HTTP 处理程序,它使 ASP.NET 的页或控件可以从已编译的 .net 程序集加载嵌入的资源,例如客户端脚本、图像和数据文件。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 处理程序确保资源应该直接通过 Web 使用。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 类的新实例。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. |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |
显式接口实现
| IHttpHandler.IsReusable |
获取一个值,该值指示其他请求能否重用 IHttpHandler 实例。Gets a value that indicates whether another request can reuse the IHttpHandler instance. |
| IHttpHandler.ProcessRequest(HttpContext) |
有关此成员的说明,请参见 ProcessRequest(HttpContext)。For a description of this member, see ProcessRequest(HttpContext). |