OracleGlobalization Class
Manages the Oracle globalization settings of the application, and local computer. Oracle globalization settings of the local computer are read-only.
public class OracleGlobalization
'Declaration
Public Class OracleGlobalization
The following example changes the date format of application.
public void ChangeDateFormat(){
// Get application's globalization info
OracleGlobalization glob = OracleGlobalization.GetApplicationInfo();
// Prints "glob.DateFormat = DD.MM.YYYY"
Console.WriteLine("glob.DateFormat = " + glob.DateFormat);
// Set date format on application's globalization info
glob.DateFormat = "MM.DD.YYYY";
OracleGlobalization.SetApplicationInfo(glob);
OracleGlobalization.GetApplicationInfo(glob);
// Prints "glob.DateFormat = MM.DD.YYYY"
Console.WriteLine("glob.DateFormat = " + glob.DateFormat);
}
Public Sub ChangeDateFormat()
' Get application's globalization info
Dim glob As OracleGlobalization = OracleGlobalization.GetApplicationInfo()
' Prints "glob.DateFormat = DD.MM.YYYY"
Console.WriteLine("glob.DateFormat = " + glob.DateFormat)
' Set date format on application's globalization info
glob.DateFormat = "MM.DD.YYYY"
OracleGlobalization.SetApplicationInfo(glob)
OracleGlobalization.GetApplicationInfo(glob)
' Prints "glob.DateFormat = MM.DD.YYYY"
Console.WriteLine("glob.DateFormat = " + glob.DateFormat)
End Sub 'ChangeDateFormat
System.Object
Devart.Data.Oracle.OracleGlobalization
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2