get_current_modes


Description:

[ Version ( since = "1.0" ) ]
public bool get_current_modes (out ModemMode allowed, out ModemMode preferred)

Gets the list of modes specifying the access technologies (eg 2G/3G/4G) the Modem is currently allowed to use when connecting to a network, as well as the preferred one, if any.

Parameters:

this

A Modem.

allowed

Return location for a bitmask of ModemMode values.

preferred

Return location for a ModemMode value.

Returns:

true if allowed and preferred are set, false otherwise.