from_string


Description:

[ Version ( since = "0.5.0" ) ]
public static DistroUpgradeEnum from_string (string upgrade)

Converts a text enumerated type to its unsigned integer representation

Parameters:

upgrade

Text describing the enumerated type

Returns:

the enumerated constant value, e.g. PK_DISTRO_UPGRADE_ENUM_STABLE