Share via


PromptOptions Class

Definition

PromptOptions<TResult> for common user prompt scenarios.

public abstract class PromptOptions : IEquatable<Microsoft.VisualStudio.Extensibility.Shell.PromptOptions>
type PromptOptions = class
    interface IEquatable<PromptOptions>
Public MustInherit Class PromptOptions
Implements IEquatable(Of PromptOptions)
Inheritance
PromptOptions
Derived
Implements

Constructors

PromptOptions()
PromptOptions(PromptOptions)

Properties

AlertConfirm

Gets options defining a prompt with an "Alert" icon and an "OK" option. The prompt returns true when the user selects "OK" or false if the user dismisses the prompt.

EqualityContract
ErrorConfirm

Gets options defining a prompt with an "Error" icon and an "OK" option. The prompt returns true when the user selects "OK" or false if the user dismisses the prompt.

HelpConfirm

Gets options defining a prompt with a "Help" icon and an "OK" option. The prompt returns true when the user selects "OK" or false if the user dismisses the prompt.

Icon

Gets or initializes the icon to display with the prompt.

InformationConfirm

Gets options defining a prompt with an "Information" icon and an "OK" option. The prompt returns true when the user selects "OK" or false if the user dismisses the prompt.

OK

Gets options defining a prompt with an "OK" choice. The prompt returns true when the user selects "OK" or false if the user dismisses the prompt.

OKCancel

Gets options defining a prompt with "OK" and "Cancel" choices. The default option is "OK". The prompt returns true if the user selects "OK", or false if the user either selects "Cancel" or dismisses the prompt.

RetryCancel

Gets options defining a prompt with "Retry" and "Cancel" choices. The default option is "Retry". The prompt returns true if the user selects "Retry", or false if the user either selects "Cancel" or dismisses the prompt.

Title

Gets or initializes the title of the prompt.

WarningConfirm

Gets options defining a prompt with a "Warning" icon and an "OK" option. The prompt returns true when the user selects "OK" or false if the user dismisses the prompt.

Methods

<Clone>$()
Equals(Object)
Equals(PromptOptions)
GetHashCode()
PrintMembers(StringBuilder)
ToString()

Operators

Equality(PromptOptions, PromptOptions)
Inequality(PromptOptions, PromptOptions)

Applies to