adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / Bitmask Class / HasFlags Method
The value to check
The mask containing the bits to check for


In This Topic
    HasFlags Method
    In This Topic
    Tests whether the specified value is included in a bitmask.
    Syntax
    'Declaration
     
    
    <PureAttribute()>
    Public Shared Function HasFlags( _
       ByVal value As Integer, _
       ByVal mask As Integer _
    ) As Boolean
    [Pure()]
    public static bool HasFlags( 
       int value,
       int mask
    )
    [Pure()]
    public:
    static bool HasFlags( 
       int value,
       int mask
    ) 

    Parameters

    value
    The value to check
    mask
    The mask containing the bits to check for

    Return Value

    true if value has all bits from mask
    Exceptions
    ExceptionDescription
    Thrown if mask is 0.
    Remarks
    This tests for a value, not a bit, by performing a bitwise AND between val and mask.
    See Also