Condividi tramite


ChoiceResultCollection<TResult>.Add(ChoiceDescription, TResult) Method

Definition

Adds a mapping from result value to choice.

public void Add (Microsoft.VisualStudio.Extensibility.Shell.ChoiceDescription choice, TResult result);
member this.Add : Microsoft.VisualStudio.Extensibility.Shell.ChoiceDescription * 'Result -> unit
Public Sub Add (choice As ChoiceDescription, result As TResult)

Parameters

choice
ChoiceDescription

The choice description.

result
TResult

The result value.

Exceptions

Thrown when the choice is already mapped.

Applies to