GetThreadInfo(OracleGlobalization)
This method refreshes the OracleGlobalization
object with the globalization settings of the current thread.
Declaration
// C#
public static void GetThreadInfo(OracleGlobalization oraGlob);
Parameters
-
oraGlob
The
OracleGlobalization
object being updated.
Remarks
Initially GetThreadInfo()
returns an OracleGlobalization
object that has the same property values as that returned by GetClientInfo()
, unless the application changes it by invoking SetThreadInfo()
.
Example
// C# using System; using Oracle.DataAccess.Client; class GetThreadInfoSample { static void Main() { // Get thread's globalization info OracleGlobalization glob = OracleGlobalization.GetThreadInfo(); // Prints "glob.Language = AMERICAN" Console.WriteLine("glob.Language = " + glob.Language); // Get thread's globalization info using overloaded OracleGlobalization.GetThreadInfo(glob); // Prints "glob.Language = AMERICAN" Console.WriteLine("glob.Language = " + glob.Language); glob.Dispose(); } }