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 (Int32, Boolean)

Creates a new BitArray with the capacity to hold the specified number of bit values, and initializes each bit to the specified value.

[Visual Basic]
Overloads Public Sub New( _
   ByVal length As Integer, _
   ByVal defaultValue As Boolean _
)
[C#]
public BitArray(
   int length,
   bool defaultValue
);
[C++]
public: BitArray(
   int length,
   bool defaultValue
);
[JScript]
public function BitArray(
   length : int,
   defaultValue : Boolean
);

Parameters

length
The number of bit values in the BitArray to create.
defaultValue
The Boolean value to assign to each bit.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException length is less than zero.

See Also

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