NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

BitArray.Set

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
);

Parameters

index
The bit to set.
value
The Boolean value to assign to the bit.

Return Value

None.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException index is less than zero.

OR, index is greater than or equal to the number of elements in the BitArray.

See Also

BitArray Class | BitArray Members | System.Collections Namespace