mscorlib(4.0.0.0) API with additions
|
Contains information about the country/region. More...
Public Member Functions | |
RegionInfo (string name) | |
Initializes a new instance of the T:System.Globalization.RegionInfo class based on the country/region or specific culture, specified by name. More... | |
RegionInfo (int culture) | |
Initializes a new instance of the T:System.Globalization.RegionInfo class based on the country/region associated with the specified culture identifier. More... | |
override bool | Equals (object value) |
Determines whether the specified object is the same instance as the current T:System.Globalization.RegionInfo. More... | |
override int | GetHashCode () |
Serves as a hash function for the current T:System.Globalization.RegionInfo, suitable for hashing algorithms and data structures, such as a hash table. More... | |
override string | ToString () |
Returns a string containing the culture name or ISO 3166 two-letter country/region codes specified for the current T:System.Globalization.RegionInfo. More... | |
Properties | |
static RegionInfo | CurrentRegion [get] |
Gets the T:System.Globalization.RegionInfo that represents the country/region used by the current thread. More... | |
virtual string | Name [get] |
Gets the name or ISO 3166 two-letter country/region code for the current T:System.Globalization.RegionInfo object. More... | |
virtual string | EnglishName [get] |
Gets the full name of the country/region in English. More... | |
virtual string | DisplayName [get] |
Gets the full name of the country/region in the language of the localized version of .NET Framework. More... | |
virtual string | NativeName [get] |
Gets the name of a country/region formatted in the native language of the country/region. More... | |
virtual string | TwoLetterISORegionName [get] |
Gets the two-letter code defined in ISO 3166 for the country/region. More... | |
virtual string | ThreeLetterISORegionName [get] |
Gets the three-letter code defined in ISO 3166 for the country/region. More... | |
virtual string | ThreeLetterWindowsRegionName [get] |
Gets the three-letter code assigned by Windows to the country/region represented by this T:System.Globalization.RegionInfo. More... | |
virtual bool | IsMetric [get] |
Gets a value indicating whether the country/region uses the metric system for measurements. More... | |
virtual int | GeoId [get] |
Gets a unique identification number for a geographical region, country, city, or location. More... | |
virtual string | CurrencyEnglishName [get] |
Gets the name, in English, of the currency used in the country/region. More... | |
virtual string | CurrencyNativeName [get] |
Gets the name of the currency used in the country/region, formatted in the native language of the country/region. More... | |
virtual string | CurrencySymbol [get] |
Gets the currency symbol associated with the country/region. More... | |
virtual string | ISOCurrencySymbol [get] |
Gets the three-character ISO 4217 currency symbol associated with the country/region. More... | |
Contains information about the country/region.
Definition at line 11 of file RegionInfo.cs.
System.Globalization.RegionInfo.RegionInfo | ( | string | name | ) |
Initializes a new instance of the T:System.Globalization.RegionInfo class based on the country/region or specific culture, specified by name.
name | A string that contains a two-letter code defined in ISO 3166 for country/region.-or-A string that contains the culture name for a specific culture, custom culture, or Windows-only culture. If the culture name is not in RFC 4646 format, your application should specify the entire culture name instead of just the country/region. |
T:System.ArgumentNullException | name is null . |
T:System.ArgumentException | name is not a valid country/region name or specific culture name. |
Definition at line 330 of file RegionInfo.cs.
System.Globalization.RegionInfo.RegionInfo | ( | int | culture | ) |
Initializes a new instance of the T:System.Globalization.RegionInfo class based on the country/region associated with the specified culture identifier.
culture | A culture identifier. |
T:System.ArgumentException | culture specifies either an invariant, custom, or neutral culture. |
Definition at line 357 of file RegionInfo.cs.
override bool System.Globalization.RegionInfo.Equals | ( | object | value | ) |
Determines whether the specified object is the same instance as the current T:System.Globalization.RegionInfo.
value | The object to compare with the current T:System.Globalization.RegionInfo. |
true
if the value parameter is a T:System.Globalization.RegionInfo object and its P:System.Globalization.RegionInfo.Name property is the same as the P:System.Globalization.RegionInfo.Name property of the current T:System.Globalization.RegionInfo object; otherwise, false
.Definition at line 430 of file RegionInfo.cs.
override int System.Globalization.RegionInfo.GetHashCode | ( | ) |
Serves as a hash function for the current T:System.Globalization.RegionInfo, suitable for hashing algorithms and data structures, such as a hash table.
Definition at line 443 of file RegionInfo.cs.
override string System.Globalization.RegionInfo.ToString | ( | ) |
Returns a string containing the culture name or ISO 3166 two-letter country/region codes specified for the current T:System.Globalization.RegionInfo.
Definition at line 451 of file RegionInfo.cs.
|
get |
Gets the name, in English, of the currency used in the country/region.
Definition at line 276 of file RegionInfo.cs.
|
get |
Gets the name of the currency used in the country/region, formatted in the native language of the country/region.
Definition at line 288 of file RegionInfo.cs.
|
get |
Gets the currency symbol associated with the country/region.
Definition at line 300 of file RegionInfo.cs.
|
staticget |
Gets the T:System.Globalization.RegionInfo that represents the country/region used by the current thread.
Definition at line 144 of file RegionInfo.cs.
|
get |
Gets the full name of the country/region in the language of the localized version of .NET Framework.
Definition at line 189 of file RegionInfo.cs.
|
get |
Gets the full name of the country/region in English.
Definition at line 176 of file RegionInfo.cs.
|
get |
Gets a unique identification number for a geographical region, country, city, or location.
Definition at line 265 of file RegionInfo.cs.
|
get |
Gets a value indicating whether the country/region uses the metric system for measurements.
true
if the country/region uses the metric system for measurements; otherwise, false
.Definition at line 252 of file RegionInfo.cs.
|
get |
Gets the three-character ISO 4217 currency symbol associated with the country/region.
Definition at line 313 of file RegionInfo.cs.
|
get |
Gets the name or ISO 3166 two-letter country/region code for the current T:System.Globalization.RegionInfo object.
Definition at line 164 of file RegionInfo.cs.
|
get |
Gets the name of a country/region formatted in the native language of the country/region.
Definition at line 203 of file RegionInfo.cs.
|
get |
Gets the three-letter code defined in ISO 3166 for the country/region.
Definition at line 228 of file RegionInfo.cs.
|
get |
Gets the three-letter code assigned by Windows to the country/region represented by this T:System.Globalization.RegionInfo.
Definition at line 239 of file RegionInfo.cs.
|
get |
Gets the two-letter code defined in ISO 3166 for the country/region.
Definition at line 216 of file RegionInfo.cs.