HttpContextWrapper.GetLocalResourceObject Method (String, String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets a page-level resource object based on the specified VirtualPath and ResourceKey properties.

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

public override object GetLocalResourceObject(
	string virtualPath,
	string resourceKey


Type: System.String

A string that represents the VirtualPath property of the local resource object.

Type: System.String

A string that represents the ResourceKey property of the requested resource object.

Return Value

Type: System.Object

The requested page-level resource object, or null if no matching resource object is found.

.NET Framework
Available since 3.5
Return to top