Method TrySelectOption
- Namespace
- Skyline.DataMiner.Utils.InteractiveAutomationScript
- Assembly
- Skyline.DataMiner.Utils.InteractiveAutomationScriptToolkit.dll
TrySelectOption(T)
Attempts to select the option with the specified value. If no matching option exists, the selection remains unchanged.
public bool TrySelectOption(T value)
Parameters
valueTThe value of the option to select.
Returns
- bool
trueif a matching option was found and selected; otherwise,false.
TrySelectOption(Option<T>)
Attempts to select the specified option. If the option does not exist in the collection, the selection remains unchanged.
public bool TrySelectOption(Option<T> option)
Parameters
optionOption<T>The option to select.
Returns
- bool
trueif the option was found and selected; otherwise,false.
Exceptions
- ArgumentNullException
When option is null.