PromptOptionsWithCancel<TResult>.WithCancelAsDefault Method

Definition

Returns an instance of PromptOptionsWithCancel<TResult> with the DefaultChoiceIndex set to the index of the automatically added "Cancel" choice.

public Microsoft.VisualStudio.Extensibility.Shell.Prompt.PromptOptionsWithCancel<TResult> WithCancelAsDefault ();
member this.WithCancelAsDefault : unit -> Microsoft.VisualStudio.Extensibility.Shell.Prompt.PromptOptionsWithCancel<'Result (requires 'Result : struct)>
Public Function WithCancelAsDefault () As PromptOptionsWithCancel(Of TResult)

Returns

A new instance of PromptOptionsWithCancel<TResult>.

Applies to