Click or drag to resize

MultilanguageStringExtensionsGetCurrentOrAny Method (MultilanguageString, String, String)

Gets current language string. If not available - the second preference. If also not available - any.

Namespace:  Aloe.EnterpriseOne.Model
Assembly:  Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntax
public static string GetCurrentOrAny(
	this MultilanguageString str,
	out string actualLanguage,
	string defaultLanguage = "en"
)

Parameters

str
Type: Aloe.EnterpriseOne.ModelMultilanguageString
The string.
actualLanguage
Type: SystemString
The actual language returned.
defaultLanguage (Optional)
Type: SystemString
The second preference language.

Return Value

Type: String
The language string, specified in actualLanguage.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type MultilanguageString. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also