Type.IsEnumDefined(Object) Metodo
Definizione
Restituisce un valore che indica se il valore specificato esiste nel tipo di enumerazione corrente.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
Parametri
- value
- Object
Valore da verificare.The value to be tested.
Restituisce
true
se il valore specificato è un membro del tipo di enumerazione corrente; in caso contrario, false
.true
if the specified value is a member of the current enumeration type; otherwise, false
.
Eccezioni
Il tipo corrente non è un'enumerazione.The current type is not an enumeration.
value
è null
.value
is null
.
value
è di un tipo che non può essere il tipo sottostante di un'enumerazione.value
is of a type that cannot be the underlying type of an enumeration.