Nevron Open Vision Documentation
Nevron.Nov Namespace / NEnum Class / IsDefined Method / IsDefined(Type,Object) Method


In This Topic
    IsDefined(Type,Object) Method
    In This Topic
    Checks whether a constant with the given value exists in the specified enumeration.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function IsDefined( _
       ByVal enumType As System.Type, _
       ByVal enumValue As System.Object _
    ) As System.Boolean
    'Usage
     
    
    Dim enumType As System.Type
    Dim enumValue As System.Object
    Dim value As System.Boolean
     
    value = NEnum.IsDefined(enumType, enumValue)
    public static System.bool IsDefined( 
       System.Type enumType,
       System.object enumValue
    )

    Parameters

    enumType
    enumValue
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also