string serverAction="设置";
ServerAction sAction = (ServerAction)Enum.Parse(typeof(ServerAction), serverAction);
if (Enum.IsDefined(typeof(ServerAction), sAction))
{
//ok
}