Table of Contents

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

value T

The value of the option to select.

Returns

bool

true if 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

option Option<T>

The option to select.

Returns

bool

true if the option was found and selected; otherwise, false.

Exceptions

ArgumentNullException

When option is null.