Type.IsEnumDefined(Object) Type.IsEnumDefined(Object) Type.IsEnumDefined(Object) Type.IsEnumDefined(Object) Method

Definition

Returns a value that indicates whether the specified value exists in the current enumeration type.

public:
 virtual bool IsEnumDefined(System::Object ^ value);
public virtual bool IsEnumDefined (object value);
abstract member IsEnumDefined : obj -> bool
override this.IsEnumDefined : obj -> bool
Public Overridable Function IsEnumDefined (value As Object) As Boolean

Parameters

value
Object Object Object Object

The value to be tested.

Returns

true if the specified value is a member of the current enumeration type; otherwise, false.

Exceptions

value is of a type that cannot be the underlying type of an enumeration.

Applies to