Click or drag to resize
Ranorex

CachedResourceManagerGetObject Method (String, CultureInfo)

Gets the value of the Object resource localized for the specified culture.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public override Object GetObject(
	string name,
	CultureInfo culture
)

Parameters

name
Type: SystemString
The name of the resource to get.
culture
Type: System.GlobalizationCultureInfo
The CultureInfo object that represents the culture for which the resource is localized. Note that if the resource is not localized for this culture, the lookup will fall back using the culture's Parent property, stopping after checking in the neutral culture. If this value is null, the CultureInfo is obtained using the culture's CurrentUICulture property.

Return Value

Type: Object
The value of the resource, localized for the specified culture. If a "best match" is not possible, null is returned.
Exceptions
ExceptionCondition
ArgumentNullException The name parameter is null.
MissingManifestResourceException No usable set of resources have been found, and there are no neutral culture resources.
See Also