IResourceUrlGenerator Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the method that a designer-host must implement to provide URL reference look-up for embedded resources.
public interface class IResourceUrlGenerator
public interface IResourceUrlGenerator
type IResourceUrlGenerator = interface
Public Interface IResourceUrlGenerator
Remarks
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 Property Values in Web Server Controls 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.
Methods
GetResourceUrl(Type, String) |
Returns a URL reference to an embedded resource in an assembly that is used at design time. |
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기