Returns true if the value is valid for the given enum type.
Namespace:
Sasa.Enum
Assembly:
Sasa (in Sasa.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Shared Function IsDefined(Of E As {Structure, New}) ( _
e As E _
) As Boolean |
| C# |
|---|
public static bool IsDefined<E>(
E e
)
where E : struct, new()
|
| Visual C++ |
|---|
public:
generic<typename E>
where E : value class, gcnew()
static bool IsDefined(
E e
) |
| JavaScript |
|---|
JavaScript does not support generic types or methods. |
Parameters
- e
- Type: E
The enum value to test.
Type Parameters
Return Value
Returns true if the value is valid for the enum.
See Also