ChoiceResultCollection<TResult>.Add(ChoiceDescription, TResult) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.