次の方法で共有


Char.ToUpper メソッド (Char, CultureInfo)

指定したカルチャ固有の書式情報を使用して、指定した Unicode 文字の値をそれと等価な大文字へ変換します。

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

パラメータ

  • c
    Unicode 文字。
  • culture
    カルチャ固有の大文字と小文字の規則を提供する System.Globalization.CultureInfo または null 参照 (Visual Basic では Nothing) 。

戻り値

culture に従って変更された、 c と等価の大文字。

または

c が大文字であるか、またはアルファベット文字でない場合には、 c の未変更の値。

例外

例外の種類 条件
ArgumentNullException culture が null 参照 (Visual Basic では Nothing) です。

解説

文字列を大文字に変換する場合には String.ToUpper を使用してください。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

参照

Char 構造体 | Char メンバ | System 名前空間 | Char.ToUpper オーバーロードの一覧 | CultureInfo.CurrentCulture | String.ToUpper | Char.ToLower