This documentation is archived and is not being maintained.

Char.ToUpper Method (Char, CultureInfo)

.NET Framework 1.1

Converts the value of a specified Unicode character to its uppercase equivalent using specified culture-specific formatting information.

[Visual Basic]
Overloads Public Shared Function ToUpper( _
   ByVal c As Char, _
   ByVal culture As CultureInfo _
) As Char
[C#]
public static char ToUpper(
 char c,
 CultureInfo culture
);
[C++]
public: static __wchar_t ToUpper(
 __wchar_t c,
 CultureInfo* culture
);
[JScript]
public static function ToUpper(
   c : Char,
 culture : CultureInfo
) : Char;

Parameters

c
A Unicode character.
culture
A System.Globalization.CultureInfo object that supplies culture-specific casing rules, or a null reference (Nothing in Visual Basic).

Return Value

The uppercase equivalent of c, modified according to culture.

-or-

The unchanged value of c, if c is already uppercase or not alphabetic.

Exceptions

Exception Type Condition
ArgumentNullException culture is a null reference (Nothing in Visual Basic).

Remarks

Use String.ToUpper to convert a string to uppercase.

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

Char Structure | Char Members | System Namespace | Char.ToUpper Overload List | CultureInfo.CurrentCulture | String.ToUpper | Char.ToLower

Show: