バイト配列内の指定位置にある指定数のバイトから変換された String を返します。
Overloads Public Shared Function ToString( _
ByVal value() As Byte, _ ByVal startIndex As Integer, _ ByVal length As Integer _) As String
[C#]
public static string ToString(byte[] value,intstartIndex,intlength);
[C++]
public: static String* ToString(unsigned charvalue __gc[],intstartIndex,intlength);
[JScript]
public static function ToString(
value : Byte[],startIndex : int,length : int) : String;
パラメータ
- value
バイト配列。 - startIndex
value 内の開始位置。 - length
変換するバイト数。
戻り値
value 内の対応する要素を表す 16 進値がハイフンで区切られている String ("7F-2C-4A" など)。
例外
例外の種類 | 条件 |
---|---|
ArgumentNullException | value が null 参照 (Visual Basic では Nothing) です。 |
ArgumentOutOfRangeException | startIndex または length が 0 未満です。
または startIndex と length の合計値が、 value の長さより大きい値です。 |
解説
配列位置 startIndex から length 個の要素が変換されます。
必要条件
プラットフォーム: 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 名前空間 | BitConverter.ToString オーバーロードの一覧