Char.ToUpper Method (Char, CultureInfo)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Converts the value of a specified Unicode character to its uppercase equivalent using specified culture-specific formatting information.
Assembly: mscorlib (in mscorlib.dll)
'Declaration Public Shared Function ToUpper ( _ c As Char, _ culture As CultureInfo _ ) As Char
Parameters
- c
- Type: System.Char
A Unicode character.
- culture
- Type: System.Globalization.CultureInfo
An object that supplies culture-specific casing rules.
Return Value
Type: System.CharThe uppercase equivalent of c, modified according to culture, or the unchanged value of c if c is already uppercase, has no uppercase equivalent, or is not alphabetic.
| Exception | Condition |
|---|---|
| ArgumentNullException | culture is Nothing. |
Use String.ToUpper to convert a string to uppercase.
Show: