Assigns a value to the bit at a specific position in the BitArray.
[Visual Basic] Public Sub Set( _ ByVal index As Integer, _ ByVal value As Boolean _ ) [C#] public void Set( int index, bool value ); [C++] public: void Set( int index, bool value ); [JScript] public function Set( index : int, value : Boolean );
None.
Exception Type | Condition |
---|---|
ArgumentOutOfRangeException | index is less than zero.
OR, index is greater than or equal to the number of elements in the BitArray. |
BitArray Class | BitArray Members | System.Collections Namespace