CultureAndRegionInfoBuilder.ThreeLetterWindowsRegionName 属性

定义

获取或设置 Windows 为当前自定义区域性表示的国家/地区分配的由三个字母组成的代码。Gets or sets the three-letter code assigned by Windows to the country/region represented by the current custom culture.

public:
 property System::String ^ ThreeLetterWindowsRegionName { System::String ^ get(); void set(System::String ^ value); };
public string ThreeLetterWindowsRegionName { get; set; }
member this.ThreeLetterWindowsRegionName : string with get, set
Public Property ThreeLetterWindowsRegionName As String

属性值

String

Windows 为 CultureAndRegionInfoBuilder 对象表示的国家/地区分配的由三个字母组成的代码。The three-letter code assigned by Windows to the country/region represented by this CultureAndRegionInfoBuilder object.

例外

设置操作中的值为 nullThe value in a set operation is null.

在设置操作中,该值的长度超出 1 至 8 个字符的范围。The length of the value in a set operation does not range from 1 to 8 characters.

在设置操作中,该值包含一个不在“a”至“z”、“A”至“Z”或“0”至“9”范围内的字符。The value in a set operation contains a character that is not in the range "a" to "z", "A" to "Z", or "0" to "9".

在设置操作中,当前自定义区域性是一个替换区域性或非特定区域性。In a set operation, the current custom culture is a replacement culture or a neutral culture.

注解

ThreeLetterWindowsRegionName属性对应于 ThreeLetterWindowsRegionName 属性。The ThreeLetterWindowsRegionName property corresponds to the ThreeLetterWindowsRegionName property.

例如,美国的三字母代码为 "USA"。For example, the three-letter code for United States is "USA".

适用于