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
Werk met ons samen op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en bekijken. Raadpleeg onze gids voor inzenders voor meer informatie.