BitArray Constructor (Int32, Boolean)
Initializes a new instance of the BitArray class that can hold the specified number of bit values, which are initially set to the specified value.
Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Parameters
- length
- Type: System.Int32
The number of bit values in the new BitArray.
- defaultValue
- Type: System.Boolean
The Boolean value to assign to each bit.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | length is less than zero. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.