Export (0) Print
Expand All

RegionInfo.CurrentRegion Property

Gets the RegionInfo that represents the country/region used by the current thread.

[Visual Basic]
Public Shared ReadOnly Property CurrentRegion As RegionInfo
[C#]
public static RegionInfo CurrentRegion {get;}
[C++]
public: __property static RegionInfo* get_CurrentRegion();
[JScript]
public static function get CurrentRegion() : RegionInfo;

Property Value

The RegionInfo that represents the country/region used by the current thread.

Remarks

The value of this property is based on the locale selected through Regional and Language Options (or Regional Options or Regional Settings) in Control Panel in Windows. However, that information can change during the life of the AppDomain. The RegionInfo class does not detect changes in the system settings automatically.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

RegionInfo Class | RegionInfo Members | System.Globalization Namespace

Show:
© 2015 Microsoft