BitArray Constructor (Int32, Boolean)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
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.
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. |
Show: