This documentation is archived and is not being maintained.

HttpContextWrapper::GetLocalResourceObject Method (String, String, CultureInfo)

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

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

public:
virtual Object^ GetLocalResourceObject(
	String^ virtualPath, 
	String^ resourceKey, 
	CultureInfo^ culture
) override

Parameters

virtualPath
Type: System::String

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

resourceKey
Type: System::String

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

culture
Type: System.Globalization::CultureInfo

A string that represents the CultureInfo object of the requested resource object.

Return Value

Type: System::Object
The requested local resource object, which is localized for the specified culture, or nullptr if no matching resource object is found.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

.NET Framework

Supported in: 3.5 SP1
Show: