Click or drag to resize
Ranorex

CachedResourceManagerGetString Method (String, CultureInfo)

Gets the value of the String 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 string GetString(
	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 looking in the neutral culture. If this value is null, the CultureInfo is obtained using the culture's CurrentUICulture property.

Return Value

Type: String
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.
InvalidOperationException The value of the specified resource is not a String.
MissingManifestResourceException No usable set of resources has been found, and there are no neutral culture resources.
See Also