dotConnect for Oracle Documentation
Devart.Data.Oracle Namespace / OracleGlobalization Class
Members Example

In This Topic
    OracleGlobalization Class
    In This Topic
    Manages the Oracle globalization settings of the application, and local computer. Oracle globalization settings of the local computer are read-only.
    Syntax
    'Declaration
     
    Public Class OracleGlobalization 
    public class OracleGlobalization 
    Example
    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
    Inheritance Hierarchy

    System.Object
       Devart.Data.Oracle.OracleGlobalization

    Requirements

    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

    See Also