Export (0) Print
Expand All

RegionInfo.ISOCurrencySymbol Property

Gets the three-character ISO 4217 currency symbol associated with the country/region.

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)

public virtual string ISOCurrencySymbol { get; }
/** @property */
public String get_ISOCurrencySymbol ()

public function get ISOCurrencySymbol () : String

Not applicable.

Property Value

The three-character ISO 4217 currency symbol associated with the country/region.

A list of the three-character ISO 4217 currency symbols is provided in the RegionInfo class topic. For example, the ISO 4217 currency symbol for the United States dollar is "USD".

The following code example displays the properties of the RegionInfo class.

using System;
using System.Globalization;

public class SamplesRegionInfo  {

   public static void Main()  {

      // Displays the property values of the RegionInfo for "US".
      RegionInfo myRI1 = new RegionInfo( "US" );
      Console.WriteLine( "   Name:                         {0}", myRI1.Name );
      Console.WriteLine( "   DisplayName:                  {0}", myRI1.DisplayName );
      Console.WriteLine( "   EnglishName:                  {0}", myRI1.EnglishName );
      Console.WriteLine( "   IsMetric:                     {0}", myRI1.IsMetric );
      Console.WriteLine( "   ThreeLetterISORegionName:     {0}", myRI1.ThreeLetterISORegionName );
      Console.WriteLine( "   ThreeLetterWindowsRegionName: {0}", myRI1.ThreeLetterWindowsRegionName );
      Console.WriteLine( "   TwoLetterISORegionName:       {0}", myRI1.TwoLetterISORegionName );
      Console.WriteLine( "   CurrencySymbol:               {0}", myRI1.CurrencySymbol );
      Console.WriteLine( "   ISOCurrencySymbol:            {0}", myRI1.ISOCurrencySymbol );

   }

}

/*
This code produces the following output.

   Name:                         US
   DisplayName:                  United States
   EnglishName:                  United States
   IsMetric:                     False
   ThreeLetterISORegionName:     USA
   ThreeLetterWindowsRegionName: USA
   TwoLetterISORegionName:       US
   CurrencySymbol:               $
   ISOCurrencySymbol:            USD

*/

import System.*;
import System.Globalization.*;

public class SamplesRegionInfo
{  
    public static void main(String[] args)
    {
        // Displays the property values of the RegionInfo for "US".
        RegionInfo myRI1 =  new RegionInfo("US");
        Console.WriteLine("   Name:                         {0}",
            myRI1.get_Name());
        Console.WriteLine("   DisplayName:                  {0}",
            myRI1.get_DisplayName());
        Console.WriteLine("   EnglishName:                  {0}",
            myRI1.get_EnglishName());
        Console.WriteLine("   IsMetric:                     {0}",
            System.Convert.ToString( myRI1.get_IsMetric()));
        Console.WriteLine("   ThreeLetterISORegionName:     {0}", 
            myRI1.get_ThreeLetterISORegionName());
        Console.WriteLine("   ThreeLetterWindowsRegionName: {0}",
            myRI1.get_ThreeLetterWindowsRegionName());
        Console.WriteLine("   TwoLetterISORegionName:       {0}", 
            myRI1.get_TwoLetterISORegionName());
        Console.WriteLine("   CurrencySymbol:               {0}", 
            myRI1.get_CurrencySymbol());
        Console.WriteLine("   ISOCurrencySymbol:            {0}",
            myRI1.get_ISOCurrencySymbol());
    } //main
} //SamplesRegionInfo

/*
This code produces the following output.

   Name:                         US
   DisplayName:                  United States
   EnglishName:                  United States
   IsMetric:                     False
   ThreeLetterISORegionName:     USA
   ThreeLetterWindowsRegionName: USA
   TwoLetterISORegionName:       US
   CurrencySymbol:               $
   ISOCurrencySymbol:            USD

*/

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

XNA Framework

Supported in: 1.0

Community Additions

ADD
Show:
© 2014 Microsoft