IResourceUrlGenerator.GetResourceUrl(Type, String) Method
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.
Returns a URL reference to an embedded resource in an assembly that is used at design time.
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
Parameters
- type
- Type
The type in the assembly that contains the embedded resource.
- resourceName
- String
The name of the resource to retrieve.
Returns
The URL reference to the resource.
Remarks
At run time, the GetWebResourceUrl method returns a URL to a resource. The AssemblyResourceLoader class defines the HTTP handler that is used to load embedded resources.
At design time, the GetWebResourceUrl method of the ClientScriptManager class detects design mode and delegates to the designer-host service implementation, which returns a URL.