OpenNETCF Smart Device Framework 2.3
Returns an indication whether a constant with a specified value exists in a specified enumeration.

Namespace:  OpenNETCF
Assembly:  OpenNETCF (in OpenNETCF.dll) Version: 2.3.0.0

Syntax

C#
public static bool IsDefined(
	Type enumType,
	Object value
)
Visual Basic (Declaration)
Public Shared Function IsDefined ( _
	enumType As Type, _
	value As Object _
) As Boolean
Visual Basic (Usage)
Dim enumType As Type
Dim value As Object
Dim returnValue As Boolean

returnValue = Enum2.IsDefined(enumType, _
	value)
Visual C++
public:
static bool IsDefined(
	Type^ enumType, 
	Object^ value
)
J#
public static boolean IsDefined(
	Type enumType,
	Object value
)
JScript
public static function IsDefined(
	enumType : Type, 
	value : Object
) : boolean
JavaScript
OpenNETCF.Enum2.IsDefined = function(enumType, value);

Parameters

enumType
Type: System..::.Type
An enumeration type.
value
Type: System..::.Object
The value or name of a constant in enumType.

Return Value

true if a constant in has a value equal to value; otherwise, false.

See Also