C#/XAML for HTML5 Documentation
C#/XAML for HTML5 Documentation
Reference
System
Enum Class
Enum Methods
Equals Method
GetHashCode Method
GetNames Method
GetValues Method
Parse Method
ToObject Method
ToString Method
TryParse Method
Enum
GetNames Method
Retrieves an array of the names of the constants in a specified enumeration.
Namespace:
System
Assembly:
mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
Copy
public
static
string
[]
GetNames
(
Type
enumType
)
Parameters
enumType
Type:
System
Type
An enumeration type.
Return Value
Type:
String
A string array of the names of the constants in
enumType
.
Exceptions
Exception
Condition
ArgumentNullException
enumType
is null.
ArgumentException
enumType
parameter is not an
Enum
.
See Also
Reference
Enum Class
System Namespace