IResourceUrlGenerator.GetResourceUrl(Type, String) 方法

定义

返回对设计时使用的程序集中嵌入资源的 URL 引用。

public:
 System::String ^ GetResourceUrl(Type ^ type, System::String ^ resourceName);
public string GetResourceUrl(Type type, string resourceName);
abstract member GetResourceUrl : Type * string -> string
Public Function GetResourceUrl (type As Type, resourceName As String) As String

参数

type
Type

包含嵌入资源的程序集中的类型。

resourceName
String

要检索的资源的名称。

返回

对资源的 URL 引用。

注解

在运行时,该方法 GetWebResourceUrl 将返回资源的 URL。 该 AssemblyResourceLoader 类定义用于加载嵌入资源的 HTTP 处理程序。

在设计时, GetWebResourceUrl 类的方法 ClientScriptManager 将检测设计模式和委托给返回 URL 的设计器主机服务实现。

适用于

另请参阅