Export (0) Print
Expand All

Buffer.SetByte Method

Assigns a specified value to a byte at a particular location in a specified array.

[Visual Basic]
Public Shared Sub SetByte( _
   ByVal array As Array, _
   ByVal index As Integer, _
   ByVal value As Byte _
)
[C#]
public static void SetByte(
 Array array,
 int index,
 byte value
);
[C++]
public: static void SetByte(
 Array* array,
 int index,
 unsigned char value
);
[JScript]
public static function SetByte(
   array : Array,
 index : int,
 value : Byte
);

Parameters

array
An array.
index
A location in the array.
value
A value to assign.

Exceptions

Exception Type Condition
ArgumentException array is not a primitive.
ArgumentNullException array is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeException index is negative or greater than the length of array.

Remarks

array must be an array of primitives.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

Buffer Class | Buffer Members | System Namespace

Show:
© 2015 Microsoft