BitVector32.CreateMask Method (Int32)
Creates an additional mask following the specified mask in a series of masks that can be used to retrieve individual bits in a BitVector32 that is set up as bit flags.
Namespace: System.Collections.Specialized
Assembly: System (in System.dll)
Parameters
- previous
- Type: System.Int32
The mask that indicates the previous bit flag.
Return Value
Type: System.Int32A mask that isolates the bit flag following the one that previous points to in BitVector32.
| Exception | Condition |
|---|---|
| InvalidOperationException | previous indicates the last bit flag in the BitVector32. |
Use CreateMask() to create the first mask in a series and CreateMask(int) for all subsequent masks.
Multiple masks can be created to refer to the same bit flag.
The resulting mask isolates only one bit flag in the BitVector32. You can combine masks using the bitwise OR operation to create a mask that isolates multiple bit flags in the BitVector32.
Using a mask on a BitVector32 that is set up as sections might cause unexpected results.
This method is an O(1) operation.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.