Type.IsEnumDefined(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The value to be tested.
Returns
true
if the specified value is a member of the current enumeration type; otherwise, false
.
Exceptions
The current type is not an enumeration.
value
is null
.
value
is of a type that cannot be the underlying type of an enumeration.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.