Partilhar via


GetSelectedItemOptions Enum

Definition

Inidicates how much to wait for GetSelectedItemAsync(GetSelectedItemOptions, CancellationToken) The shorter wait comes with a tradeoff of receiving a potentially stale item or no item.

public enum class GetSelectedItemOptions
public enum GetSelectedItemOptions
type GetSelectedItemOptions = 
Public Enum GetSelectedItemOptions
Inheritance
GetSelectedItemOptions

Fields

Name Value Description
GetLastAvailableItem 0

Don't wait and immediately return the item which was last known to be selected. If no item is available yet, a null value will be returned.

WaitForComputation 1

Wait for a computation to select the appropriate completion item given the current state. If not items are not available yet, a null value will be returned. For example, this accommodates for selection after user types and scrolls with arrow keys.

WaitForContextAndComputation 2

Wait to receive list of items and compute the selected completion item. This option may result in the longest wait, but is useful for scenarios when user explicitly asks for a completion item.

Applies to