Determines whether one or more bit fields are set in the specified enumeration.
Namespace:
BlueCieloECM.InnoCielo.Meridian
Assembly:
BlueCieloECM.InnoCielo.Meridian (in BlueCieloECM.InnoCielo.Meridian.dll) Version: 4.0.0.0 (4.0.111.0)
Syntax public static bool HasFlag(
Enum anEnum,
Enum flag
)
Public Shared Function HasFlag (
anEnum As Enum,
flag As Enum
) As Boolean
Parameters
- anEnum
- Type: SystemEnum
The enumeration to check. - flag
- Type: SystemEnum
An enumeration value.
Return Value
Type:
Boolean if the bit field or bit fields that are set in flag are
also set in the specified enumeration; otherwise,
.
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
See Also