Locale
- Last UpdatedNov 17, 2021
- 1 minute read
This property indicates which locale the Business Logic Tier (BLT) component uses for internationalizing strings. By default, this is not required to be set, and uses the locale of the local thread.
Declaration
Int32 Locale { get; set; }
Example
using System;
using OASySDNA.Common;
class Test
{
static void Main(string[] args)
{
try
{
var bltClientFactory = new BLTClientFactory();
using (var bltClient = bltClientFactory.Create("Almattr"))
{
//Set the locale
bltClient.Locale = System.Globalization.CultureInfo.CurrentCulture.LCID;
//Execute the component
bltClient.Execute();
}
}
catch(System.Exception e)
{
Console.WriteLine(e.Message);
Console.WriteLine(e.StackTrace);
}
}
}