IResourceUrlGenerator Interface
Defines the method that a designer-host must implement to provide URL reference look-up for embedded resources.
Assembly: System.Web (in System.Web.dll)
The IResourceUrlGenerator type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | GetResourceUrl | Returns a URL reference to an embedded resource in an assembly that is used at design time. |
ASP.NET version 2.0 provides the ability to retrieve embedded resources from an assembly for controls, such as the Page control. At run time, the URL to the embedded resource can be retrieved using the GetWebResourceUrl method of the ClientScriptManager class. To provide a design-time means for generating a resource URL from an assembly, designer hosts can offer a service that implements the IResourceUrlGenerator interface. For more information:
On using resources in localization, see ASP.NET Web Page Resources Overview.
On using embedded resources, see How to: Use Resources to Set ASP.NET Control Property Values and How to: Retrieve Resource Values Programmatically.
On control designers, see ASP.NET Control Designers Overview.
The IResourceUrlGenerator interface has one method, the GetResourceUrl method, that returns a URL reference to a resource given the resource type and name.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
