EnumerationExtensionsHasFlagT Method |
Note: This API is now obsolete.
Namespace: OIV.InventorAssembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax [EditorBrowsableAttribute(EditorBrowsableState.Never)]
[ObsoleteAttribute("Obsolete since Open Inventor 9920. Use System.Enum.HasFlag(System.Enum) method instead.")]
public static bool HasFlag<T>(
this Enum type,
T value
)
where T : Enum
<EditorBrowsableAttribute(EditorBrowsableState.Never)>
<ObsoleteAttribute("Obsolete since Open Inventor 9920. Use System.Enum.HasFlag(System.Enum) method instead.")>
<ExtensionAttribute>
Public Shared Function HasFlag(Of T As Enum) (
type As Enum,
value As T
) As Boolean
public:
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
[ObsoleteAttribute(L"Obsolete since Open Inventor 9920. Use System.Enum.HasFlag(System.Enum) method instead.")]
[ExtensionAttribute]
generic<typename T>
where T : Enum
static bool HasFlag(
Enum^ type,
T value
)
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
[<ObsoleteAttribute("Obsolete since Open Inventor 9920. Use System.Enum.HasFlag(System.Enum) method instead.")>]
[<ExtensionAttribute>]
static member HasFlag :
type : Enum *
value : 'T -> bool when 'T : Enum
Parameters
- type
- Type: SystemEnum
- value
- Type: T
Type Parameters
- T
Return Value
Type:
BooleanUsage Note
In 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).
See Also