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
Samarbejd med os på GitHub
Kilden til dette indhold kan findes på GitHub, hvor du også kan oprette og gennemse problemer og pullanmodninger. Du kan få flere oplysninger i vores vejledning til bidragydere.