System.Web.UI.IResourceUrlGenerator.GetResourceUrl Method

Returns a URL reference to an embedded resource in an assembly that is used at design time.

Syntax

public string GetResourceUrl (Type type, string resource)

Parameters

resource
Documentation for this section has not yet been entered.
type
The type in the assembly that contains the embedded resource.

Returns

The URL reference to the resource.

Remarks

At run time, the ClientScriptManager.GetWebResourceUrl(Type, string) method returns a URL to a resource. The System.Web.Handlers.AssemblyResourceLoader class defines the HTTP handler that is used to load embedded resources.

At design time, the ClientScriptManager.GetWebResourceUrl(Type, string) method of the System.Web.UI.ClientScriptManager class detects design mode and delegates to the designer-host service implementation, which returns a URL.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0