ToUpper Method (Char, CultureInfo)
Collapse the table of content
Expand the table of content

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.

Namespace:  System
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.Char
The 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.

ExceptionCondition
ArgumentNullException

culture is Nothing.

Use String.ToUpper to convert a string to uppercase.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft