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
Syntaxpublic static string GetCurrentOrAny(
this MultilanguageString str,
out string actualLanguage,
string defaultLanguage = "en"
)
<ExtensionAttribute>
Public Shared Function GetCurrentOrAny (
str As MultilanguageString,
<OutAttribute> ByRef actualLanguage As String,
Optional defaultLanguage As String = "en"
) As String
public:
[ExtensionAttribute]
static String^ GetCurrentOrAny(
MultilanguageString^ str,
[OutAttribute] String^% actualLanguage,
String^ defaultLanguage = L"en"
)
[<ExtensionAttribute>]
static member GetCurrentOrAny :
str : MultilanguageString *
actualLanguage : string byref *
?defaultLanguage : string
(* Defaults:
let _defaultLanguage = defaultArg defaultLanguage "en"
*)
-> string
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