Determines whether one or more bit fields are set in the specified enumeration.
Namespace: BlueCieloECM.InnoCielo.MeridianAssembly: BlueCieloECM.InnoCielo.Meridian (in BlueCieloECM.InnoCielo.Meridian.dll) Version: 1.4.0.0 (1.4.40.0)
Syntax
C# |
---|
public static bool HasFlag( Enum anEnum, Enum flag ) |
Visual Basic |
---|
Public Shared Function HasFlag ( _ anEnum As Enum, _ flag As Enum _ ) As Boolean |
Visual C++ |
---|
public: static bool HasFlag( Enum^ anEnum, Enum^ flag ) |
Parameters
- anEnum
- Type: System..::..Enum
The enumeration to check.
- flag
- Type: System..::..Enum
An enumeration value.
Return Value
trueTruetruetrue (True in Visual Basic) if the bit field or bit fields that are set in flag are also set in the specified enumeration; otherwise, falseFalsefalsefalse (False in Visual Basic).Remarks
This method is an analogue of the Enum.HasFlag method introduced in .NET Framework 4.0.
More info:
- Enum.HasFlag Method
http://msdn.microsoft.com/en-us/library/system.enum.hasflag(VS.100).aspx