RegionInfo.CurrentRegion 屬性

定義

取得 RegionInfo,表示目前執行緒所使用的國家/地區。Gets the RegionInfo that represents the country/region used by the current thread.

public:
 static property System::Globalization::RegionInfo ^ CurrentRegion { System::Globalization::RegionInfo ^ get(); };
public static System.Globalization.RegionInfo CurrentRegion { get; }
member this.CurrentRegion : System.Globalization.RegionInfo
Public Shared ReadOnly Property CurrentRegion As RegionInfo

屬性值

RegionInfo

RegionInfo,表示目前執行緒所使用的國家/地區。The RegionInfo that represents the country/region used by the current thread.

備註

這個屬性的值是以透過主控台的 [地區及語言選項] 部分所選取的文化特性為基礎。The value of this property is based on the culture selected through the regional and language options portion of Control Panel. 不過,這項資訊可能會在存留期間變更 AppDomainHowever, that information can change during the life of the AppDomain. RegionInfo類別不會自動偵測系統設定中的變更,但是 CurrentRegion 當您呼叫方法時,會更新屬性 ClearCachedDataThe RegionInfo class does not automatically detect changes in the system settings, but the CurrentRegion property is updated when you call the ClearCachedData method.

適用於