Enum.Parse Method (System)

Converts the string representation of the name or numeric value of one or more enumerated constants to an equivalent enumerated object.