IResourceProvider::GetObject Method
Returns a resource object for the key and culture.
Assembly: System.Web (in System.Web.dll)
Parameters
- resourceKey
- Type: System::String
The key identifying a particular resource.
- culture
- Type: System.Globalization::CultureInfo
The culture identifying a localized value for the resource.
Return Value
Type: System::ObjectAn Object that contains the resource value for the resourceKey and culture.
When implemented, the GetObject method returns the localized value for a resource key based on the current culture. The implementing class could retrieve the CurrentUICulture property if a value for the culture parameter is not passed in.
The following code example shows a customized resource provider factory that retrieves cached values. The resource provider factory creates an instance of a customized resource provider that implements IResourceProvider. The resource provider includes a customized GetObject method.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
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.