Export (0) Print
Expand All

IResourceUrlGenerator.GetResourceUrl Method

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)

string GetResourceUrl(
	Type type,
	string resourceName
)

Parameters

type
Type: System.Type
The type in the assembly that contains the embedded resource.
resourceName
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

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft