NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

BitArray Constructor (Byte[])

Copies the values of the bits in an array of bytes into a new BitArray.

[Visual Basic]
Overloads Public Sub New( _
   ByVal bytes() As Byte _
)
[C#]
public BitArray(
   byte[] bytes
);
[C++]
public: BitArray(
   unsigned char* bytes[]
);
[JScript]
public function BitArray(
   bytes : Byte[]
);

Parameters

bytes
An array of bytes containing the values to copy, where each byte represents 8 consecutive bits.

Exceptions

Exception Type Condition
ArgumentException bytes is a null reference object.

Remarks

The character in the first byte represents bits 0- 7, the second byte in the array represents bits 8- 15, etc. Further, the Least Significant Bit of each byte represents the lowest index value; bytes[0] & 1 represents bit 0, bytes[0] & 2 represents bit 1, bytes[0] and 4 represents bit 2, etc.

See Also

BitArray Class | BitArray Members | System.Collections Namespace | BitArray Constructor Overload List