次の方法で共有


BitConverter.ToChar メソッド

バイト配列内の指定位置にある 2 バイトから変換された Unicode 文字を返します。

Public Shared Function ToChar( _
   ByVal value() As Byte, _   ByVal startIndex As Integer _) As Char
[C#]
public static char ToChar(byte[] value,intstartIndex);
[C++]
public: static __wchar_t ToChar(unsigned charvalue __gc[],intstartIndex);
[JScript]
public static function ToChar(
   value : Byte[],startIndex : int) : Char;

パラメータ

  • value
    配列。
  • startIndex
    value 内の開始位置。

戻り値

startIndex から始まる 2 バイトで構成される文字。

例外

例外の種類 条件
ArgumentNullException value が null 参照 (Visual Basic では Nothing) です。
ArgumentOutOfRangeException startIndex が 0 未満か、 value の長さから 2 を引いた値より大きい値です。

必要条件

プラットフォーム: 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

参照

BitConverter クラス | BitConverter メンバ | System 名前空間 | Char