GetResourceUrl Method
Collapse the table of content
Expand the table of content

IResourceUrlGenerator.GetResourceUrl Method (Type, String)


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

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

abstract GetResourceUrl : 
        type:Type *
        resourceName:string -> string


Type: System.Type

The type in the assembly that contains the embedded resource.

Type: System.String

The name of the resource to retrieve.

Return Value

Type: System.String

The URL reference to the resource.

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.

.NET Framework
Available since 2.0
Return to top
© 2016 Microsoft