Cuemon .NET Framework
HasFlag<TEnum> Method

The type of the enumeration.
The bit field or bit fields to test if set in value.
An enumeration value.
Determines whether one or more bit fields are set in the specified source.
Syntax
'Declaration
 
Public Shared Function HasFlag(Of TEnum As {New, IConvertible, Struct})( _
   ByVal source As TEnum, _
   ByVal value As TEnum _
) As Boolean
public static bool HasFlag<TEnum>( 
   TEnum source,
   TEnum value
)
where TEnum: new(), IConvertible, struct

Parameters

source
The bit field or bit fields to test if set in value.
value
An enumeration value.

Type Parameters

TEnum
The type of the enumeration.

Return Value

true if the bit field or bit fields that are set in source are also set in the value; otherwise, false.
Requirements

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EnumUtility Class
EnumUtility Members

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback