BitArray.SetAll Method (Boolean)

 

Sets all bits in the BitArray to the specified value.

Namespace:   System.Collections
Assembly:  mscorlib (in mscorlib.dll)

member SetAll : 
        value:bool -> unit

Parameters

value
Type: System.Boolean

The Boolean value to assign to all bits.

This method is an O(n) operation, where n is Count.

The following code example shows how to set and get specific elements in a BitArray.

No code example is currently available or this language may not be supported.

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
Return to top
Show: