from_string


Description:

[ Version ( since = "0.9.6" ) ]
public static OfflineAction from_string (string action)

Converts the string to the enumerated value.

Parameters:

action

a string representation of a OfflineAction, e.g. "reboot"

Returns:

A OfflineAction, or UNKNOWN for invalid