get_option


Description:

public bool get_option (uint32 idx, out string out_name, out string out_value)

Given an index, return the value of the bonding option at that index.

Indexes are *not* guaranteed to be static across modifications to options done by add_option and remove_option, and should not be used to refer to options except for short periods of time such as during option iteration.

Parameters:

this

the SettingBond

idx

index of the desired option, from 0 to get_num_options - 1

out_name

on return, the name of the bonding option; this value is owned by the setting and should not be modified

out_value

on return, the value of the name of the bonding option; this value is owned by the setting and should not be modified

Returns:

true on success if the index was valid and an option was found, false if the index was invalid (ie, greater than the number of options currently held by the setting)