次の方法で共有


Buffer.SetByte メソッド

指定した配列の指定した位置にあるバイトに、指定した値を代入します。

Public Shared Sub SetByte( _
   ByVal array As Array, _   ByVal index As Integer, _   ByVal value As Byte _)
[C#]
public static void SetByte(Arrayarray,intindex,bytevalue);
[C++]
public: static void SetByte(Array* array,intindex,unsigned charvalue);
[JScript]
public static function SetByte(
   array : Array,index : int,value : Byte);

パラメータ

  • array
    配列。
  • index
    配列内の位置。
  • value
    代入する値。

例外

例外の種類 条件
ArgumentException array がプリミティブではありません。
ArgumentNullException array が null 参照 (Visual Basic では Nothing) です。
ArgumentOutOfRangeException index が負か、または array の長さを超えています。

解説

array は、プリミティブの配列である必要があります。

必要条件

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

参照

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