다음을 통해 공유


PromptOptions<TResult> Constructors

Definition

Overloads

PromptOptions<TResult>()

Describes the options for a prompt which presents choices to the user and returns the user's selection as a mapped result value.

PromptOptions<TResult>(PromptOptions<TResult>)

Initializes a new instance of the PromptOptions<TResult> class.

PromptOptions<TResult>(ChoiceResultCollection<TResult>, Int32, TResult)

Initializes a new instance of the PromptOptions<TResult> class.

PromptOptions<TResult>()

Describes the options for a prompt which presents choices to the user and returns the user's selection as a mapped result value.

public PromptOptions ();
Public Sub New ()

Applies to

PromptOptions<TResult>(PromptOptions<TResult>)

Initializes a new instance of the PromptOptions<TResult> class.

protected PromptOptions (Microsoft.VisualStudio.Extensibility.Shell.PromptOptions<TResult> original);
new Microsoft.VisualStudio.Extensibility.Shell.PromptOptions<'Result (requires 'Result : struct)> : Microsoft.VisualStudio.Extensibility.Shell.PromptOptions<'Result (requires 'Result : struct)> -> Microsoft.VisualStudio.Extensibility.Shell.PromptOptions<'Result (requires 'Result : struct)>
Protected Sub New (original As PromptOptions(Of TResult))

Parameters

original
PromptOptions<TResult>

The instance to copy.

Remarks

Overrides the default record copy constructor to make a deep clone of Choices.

Applies to

PromptOptions<TResult>(ChoiceResultCollection<TResult>, Int32, TResult)

Initializes a new instance of the PromptOptions<TResult> class.

public PromptOptions (Microsoft.VisualStudio.Extensibility.Shell.ChoiceResultCollection<TResult> choices, int defaultChoiceIndex, TResult dismissedReturns);
new Microsoft.VisualStudio.Extensibility.Shell.PromptOptions<'Result (requires 'Result : struct)> : Microsoft.VisualStudio.Extensibility.Shell.ChoiceResultCollection<'Result (requires 'Result : struct)> * int * 'Result -> Microsoft.VisualStudio.Extensibility.Shell.PromptOptions<'Result (requires 'Result : struct)>
Public Sub New (choices As ChoiceResultCollection(Of TResult), defaultChoiceIndex As Integer, dismissedReturns As TResult)

Parameters

choices
ChoiceResultCollection<TResult>

The choices to present to the user.

defaultChoiceIndex
Int32

The index in choices of the choice to present as the default.

dismissedReturns
TResult

The result value to return when the user dismisses the prompt without making a selection.

Applies to