Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft