System Namespace Enum Class
Returns an indication whether a constant with a specified value exists in a specified enumeration.
[ VB ]
<Serializable>
Public Shared Function IsDefined ( _
ByVal enumType As Type, _
ByVal value As Object _
) As Boolean
[ C# ]
[Serializable]
public static bool IsDefined (
Type enumType,
object value
);
[ C++ ]
[Serializable]
public: static bool IsDefined (
Type* enumType,
Object* value
);
[JScript ]
public Serializable
static function IsDefined (
enumType : Type,
value : Object
) : Boolean;
- enumType
- An enumeration type.
- value
- The value or name of a constant in enumType.
true if a constant in enumType has a value equal to value; otherwise, false.
Enum Members