FlagsHelperContains Method
Check to see if a flags enumeration has a specific flag set.
Namespace: SMath.ControlsAssembly: SMath.Controls (in SMath.Controls.dll) Version: 1.73.9126.0
public static bool Contains(
this Enum keys,
Enum flag
)
<ExtensionAttribute>
Public Shared Function Contains (
keys As Enum,
flag As Enum
) As Boolean
public:
[ExtensionAttribute]
static bool Contains(
Enum^ keys,
Enum^ flag
)
[<ExtensionAttribute>]
static member Contains :
keys : Enum *
flag : Enum -> bool
- keys Enum
-
- flag Enum
-
BooleanIn Visual Basic and C#, you can call this method as an instance method on any object of type
Enum. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).