System.Globalization Obor názvů
Obsahuje třídy, které definují informace týkající se jazykové verze, jako je jazyk, země nebo oblast, používané kalendáře, vzory formátu data, měny a čísel a pořadí řazení pro řetězce. Contains classes that define culture-related information, including language, country/region, calendars in use, format patterns for dates, currency, and numbers, and sort order for strings. Tyto třídy jsou užitečné pro psaní globálních (mezinárodních) aplikací. These classes are useful for writing globalized (internationalized) applications. Třídy jako StringInfo a TextInfo poskytují pokročilé funkce globalizace, včetně náhradní podpory a zpracování textových prvků. Classes such as StringInfo and TextInfo provide advanced globalization functionalities, including surrogate support and text element processing.
Třídy
Calendar |
Představuje čas v rozdělení, například týdny, měsíce a roky.Represents time in divisions, such as weeks, months, and years. |
CharUnicodeInfo |
Načte informace o znaku Unicode.Retrieves information about a Unicode character. Tuto třídu nelze zdědit.This class cannot be inherited. |
ChineseLunisolarCalendar |
Představuje čas v rozdělení, například měsíce, dny a roky.Represents time in divisions, such as months, days, and years. Roky se počítají pomocí čínského kalendáře, zatímco dny a měsíce se počítají pomocí kalendáře lunasolární.Years are calculated using the Chinese calendar, while days and months are calculated using the lunisolar calendar. |
CompareInfo |
Implementuje sadu metod pro porovnávání řetězců závislé na jazykové verzi.Implements a set of methods for culture-sensitive string comparisons. |
CultureAndRegionInfoBuilder |
Definuje vlastní jazykovou verzi, která je nová nebo založená na jiné jazykové verzi a zemi nebo oblasti.Defines a custom culture that is new or based on another culture and country/region. Vlastní jazykovou verzi můžete nainstalovat na počítač a následně ji použít v jakékoli aplikaci, která je na tomto počítači spuštěná.The custom culture can be installed on a computer and subsequently used by any application that is running on that computer. Tuto třídu nelze zdědit.This class cannot be inherited. |
CultureInfo |
Poskytuje informace o konkrétní jazykové verzi (označované jako národní prostředí pro vývoj nespravovaného kódu).Provides information about a specific culture (called a locale for unmanaged code development). Tyto informace zahrnují názvy pro jazykovou verzi, systém zápisu, použitý kalendář, pořadí řazení řetězců a formátování dat a čísel.The information includes the names for the culture, the writing system, the calendar used, the sort order of strings, and formatting for dates and numbers. |
CultureNotFoundException |
Výjimka, která je vyvolána, když se metoda pokusí vytvořit jazykovou verzi, která není k dispozici.The exception that is thrown when a method attempts to construct a culture that is not available. |
DateTimeFormatInfo |
Poskytuje informace specifické pro jazykovou verzi týkající se formátu hodnot data a času.Provides culture-specific information about the format of date and time values. |
DaylightTime |
Definuje období letního času.Defines the period of daylight saving time. |
EastAsianLunisolarCalendar |
Představuje kalendář, který rozděluje čas na měsíce, dny, roky a vymazávání a má kalendářní data založená na cyklech slunce a měsíce.Represents a calendar that divides time into months, days, years, and eras, and has dates that are based on cycles of the sun and the moon. |
GlobalizationExtensions |
Poskytuje metody rozšíření související s globalizací.Provides globalization-related extension methods. |
GregorianCalendar |
Představuje gregoriánský kalendář.Represents the Gregorian calendar. |
HebrewCalendar |
Představuje hebrejský kalendář.Represents the Hebrew calendar. |
HijriCalendar |
Představuje kalendář hidžra.Represents the Hijri calendar. |
IdnMapping |
Podporuje použití jiných znaků než ASCII pro názvy internetových domén.Supports the use of non-ASCII characters for Internet domain names. Tuto třídu nelze zdědit.This class cannot be inherited. |
ISOWeek |
Poskytuje statickým členům podporu data v týdnu podle normy ISO 8601 data a času vydaného ISO (ISO).Provides static members to support the ISO week date that is part of the ISO 8601 date and time standard issued by the International Organization for Standardization (ISO). |
JapaneseCalendar |
Představuje japonský kalendář.Represents the Japanese calendar. |
JapaneseLunisolarCalendar |
Představuje čas v rozdělení, například měsíce, dny a roky.Represents time in divisions, such as months, days, and years. Roky se počítají jako u japonského kalendáře, zatímco dny a měsíce se počítají pomocí kalendáře lunasolární.Years are calculated as for the Japanese calendar, while days and months are calculated using the lunisolar calendar. |
JulianCalendar |
Představuje juliánské kalendář.Represents the Julian calendar. |
KoreanCalendar |
Představuje korejský kalendář.Represents the Korean calendar. |
KoreanLunisolarCalendar |
Představuje čas v rozdělení, například měsíce, dny a roky.Represents time in divisions, such as months, days, and years. Roky se počítají pomocí gregoriánského kalendáře, zatímco dny a měsíce se počítají pomocí kalendáře lunasolární.Years are calculated using the Gregorian calendar, while days and months are calculated using the lunisolar calendar. |
NumberFormatInfo |
Poskytuje informace specifické pro jazykovou verzi pro formátování a analýzu číselných hodnot.Provides culture-specific information for formatting and parsing numeric values. |
PersianCalendar |
Představuje perské kalendář.Represents the Persian calendar. |
RegionInfo |
Obsahuje informace o zemi nebo oblasti.Contains information about the country/region. |
SortKey |
Představuje výsledek mapování řetězce na klíč řazení.Represents the result of mapping a string to its sort key. |
SortVersion |
Poskytuje informace o verzi Unicode používané k porovnávání a seřazení řetězců.Provides information about the version of Unicode used to compare and order strings. |
StringInfo |
Poskytuje funkce pro rozdělení řetězce na textové prvky a iterování skrze tyto textové prvky.Provides functionality to split a string into text elements and to iterate through those text elements. |
TaiwanCalendar |
Tchajwanský kalendář.the Taiwan calendar. |
TaiwanLunisolarCalendar |
Představuje lunasolární kalendář pro Tchaj-wan.Represents the Taiwan lunisolar calendar. Jako u tchajwanských kalendářů se roky počítají pomocí gregoriánského kalendáře, zatímco dny a měsíce se počítají pomocí kalendáře lunasolární.As for the Taiwan calendar, years are calculated using the Gregorian calendar, while days and months are calculated using the lunisolar calendar. |
TextElementEnumerator |
Vytvoří výčet textových prvků řetězce.Enumerates the text elements of a string. |
TextInfo |
Definuje vlastnosti textu a chování, například velká a malá písmena, které jsou specifické pro systém zápisu.Defines text properties and behaviors, such as casing, that are specific to a writing system. |
ThaiBuddhistCalendar |
Představuje thajský buddhistický kalendář.Represents the Thai Buddhist calendar. |
UmAlQuraCalendar |
Představuje kalendář Saúdská hidžra (Um Al-Qura).Represents the Saudi Hijri (Um Al Qura) calendar. |
Výčty
CalendarAlgorithmType |
Určuje, zda je kalendář založen na standardu slunečního, lunárního nebo založeného na lunasolární.Specifies whether a calendar is solar-based, lunar-based, or lunisolar-based. |
CalendarWeekRule |
Definuje různá pravidla pro určení prvního týdne roku.Defines different rules for determining the first week of the year. |
CompareOptions |
Definuje možnosti porovnání řetězců pro použití s CompareInfo .Defines the string comparison options to use with CompareInfo. |
CultureAndRegionModifiers |
Určuje konstanty definující CultureAndRegionInfoBuilder objekt.Specifies constants that define a CultureAndRegionInfoBuilder object. |
CultureTypes |
Definuje typy seznamů jazykové verze, které lze načíst pomocí GetCultures(CultureTypes) metody.Defines the types of culture lists that can be retrieved using the GetCultures(CultureTypes) method. |
DateTimeStyles |
Definuje možnosti formátování, které přizpůsobují analýzu řetězců pro některé metody analýzy data a času.Defines the formatting options that customize string parsing for some date and time parsing methods. |
DigitShapes |
Určuje zobrazení číslic specifické pro jazykovou verzi.Specifies the culture-specific display of digits. |
GregorianCalendarTypes |
Definuje různé jazykové verze gregoriánského kalendáře.Defines the different language versions of the Gregorian calendar. |
NumberStyles |
Určuje styly povolené v číselných argumentech řetězců, které jsou předány |
TimeSpanStyles |
Definuje možnosti formátování, které přizpůsobují analýzu řetězců ParseExact pro TryParseExact metody a.Defines the formatting options that customize string parsing for the ParseExact and TryParseExact methods. |
UnicodeCategory |
Definuje kategorii Unicode znaku.Defines the Unicode category of a character. |
Poznámky
Následující Blogy obsahují diskuze System.Globalization oboru názvů a jeho tříd:The following blogs include discussions of the System.Globalization namespace and its classes:
Dva z typů .NET v tomto oboru názvů CultureAndRegionInfoBuilder a CultureAndRegionModifiers , se nacházejí v sestavení s názvem sysglobl.dll .Two of the .NET types in this namespace, CultureAndRegionInfoBuilder and CultureAndRegionModifiers, are found in an assembly named sysglobl.dll . Chcete-li úspěšně kompilovat kód, který používá tyto typy, přidejte odkaz na sysglobl.dll.To successfully compile code that uses these types, add a reference to sysglobl.dll.