CultureAndRegionModifiers Enumeration
Specifies constants that define a CultureAndRegionInfoBuilder object.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Namespace: System.GlobalizationAssembly: sysglobl (in sysglobl.dll)
Specify a bitwise combination of one or more CultureAndRegionModifiers values as a parameter of the CultureAndRegionInfoBuilder::CultureAndRegionInfoBuilder(String, CultureAndRegionModifiers) constructor. The application should use the resulting CultureAndRegionInfoBuilder object to create a custom culture.
A custom culture can have a combination of these characteristics:
A custom culture can be a specific culture or a neutral culture.
A specific culture specifies a language and a region, while a neutral culture specifies a language but no region.
A custom culture can be a replacement culture or a supplemental culture.
A replacement culture replaces a culture that ships with the .NET Framework or a locale that ships with Windows.
A supplemental culture is anything other than a replacement culture. A supplemental culture can be entirely new, or can extend an existing .NET Framework culture or Windows locale.
The following code example creates a custom culture with a private use prefix, then lists a set of its properties. The first property is the name of the culture.
// This example demonstrates a System.Globalization.Culture- // AndRegionInfoBuilder constructor and some of the properties // of a custom culture object created with the constructor. #using <sysglobl.dll> using namespace System; using namespace System::Globalization; int main() { CultureAndRegionInfoBuilder^ builder = gcnew CultureAndRegionInfoBuilder ("x-en-US-sample", CultureAndRegionModifiers::None); // Display some of the properties // for the en-US culture. Console::WriteLine("CultureName:. . . . . . . . . . {0}", builder->CultureName); Console::WriteLine("CultureEnglishName: . . . . . . {0}", builder->CultureEnglishName); Console::WriteLine("CultureNativeName:. . . . . . . {0}", builder->CultureNativeName); Console::WriteLine("GeoId:. . . . . . . . . . . . . {0}", builder->GeoId); Console::WriteLine("IsMetric: . . . . . . . . . . . {0}", builder->IsMetric); Console::WriteLine("ISOCurrencySymbol:. . . . . . . {0}", builder->ISOCurrencySymbol); Console::WriteLine("RegionEnglishName:. . . . . . . {0}", builder->RegionEnglishName); Console::WriteLine("RegionName: . . . . . . . . . . {0}", builder->RegionName); Console::WriteLine("RegionNativeName: . . . . . . . {0}", builder->RegionNativeName); Console::WriteLine("ThreeLetterISOLanguageName: . . {0}", builder->ThreeLetterISOLanguageName); Console::WriteLine("ThreeLetterISORegionName: . . . {0}", builder->ThreeLetterISORegionName); Console::WriteLine("ThreeLetterWindowsLanguageName: {0}", builder->ThreeLetterWindowsLanguageName); Console::WriteLine("ThreeLetterWindowsRegionName: . {0}", builder->ThreeLetterWindowsRegionName); Console::WriteLine("TwoLetterISOLanguageName: . . . {0}", builder->TwoLetterISOLanguageName); Console::WriteLine("TwoLetterISORegionName: . . . . {0}", builder->TwoLetterISORegionName); } /* This code example produces the following results: CultureName:. . . . . . . . . . en-US CultureEnglishName: . . . . . . English (United States) CultureNativeName:. . . . . . . English (United States) GeoId:. . . . . . . . . . . . . 244 IsMetric: . . . . . . . . . . . False ISOCurrencySymbol:. . . . . . . USD RegionEnglishName:. . . . . . . United States RegionName: . . . . . . . . . . US RegionNativeName: . . . . . . . United States ThreeLetterISOLanguageName: . . eng ThreeLetterISORegionName: . . . USA ThreeLetterWindowsLanguageName: ENU ThreeLetterWindowsRegionName: . USA TwoLetterISOLanguageName: . . . en TwoLetterISORegionName: . . . . US */
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.