BitArray Constructor (Int32, Boolean)
.NET Framework (current version)
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. |
This constructor is an O(n) operation, where n is length.
Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Show: