ChangePreviewOptions
ConsoleMonster.Changes
Options for ChangePreview.Confirm.
Inheritance
- object
- ChangePreviewOptions
Usage
Explore 27 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 12
- Extension method ChangePreviewOptions.Interactive
- Extension method ChangePreviewOptions.Mode
- Extension method ChangePreviewOptions.Question
- Extension method ChangePreviewOptions.Title
- Extension method ChangePreviewOptions.TypedConfirmation
- Extension method ChangePreviewOptions.TypedWhenDestructive
- Method ChangePreviewOptionsFluent.Interactive
- Method ChangePreviewOptionsFluent.Mode
- Method ChangePreviewOptionsFluent.Question
- Method ChangePreviewOptionsFluent.Title
- Method ChangePreviewOptionsFluent.TypedConfirmation
- Method ChangePreviewOptionsFluent.TypedWhenDestructive
Accepted by parameters 15
- Method ChangePreview.Ask
- Method ChangePreview.Confirm
- Method ChangePreview.Show
- Extension method ChangePreviewOptions.Interactive
- Extension method ChangePreviewOptions.Mode
- Extension method ChangePreviewOptions.Question
- Extension method ChangePreviewOptions.Title
- Extension method ChangePreviewOptions.TypedConfirmation
- Extension method ChangePreviewOptions.TypedWhenDestructive
- Method ChangePreviewOptionsFluent.Interactive
- Method ChangePreviewOptionsFluent.Mode
- Method ChangePreviewOptionsFluent.Question
- Method ChangePreviewOptionsFluent.Title
- Method ChangePreviewOptionsFluent.TypedConfirmation
- Method ChangePreviewOptionsFluent.TypedWhenDestructive
Constructors
public ChangePreviewOptions() #Inherited Methods
Properties
public ChangeViewMode Mode { get; set; } #The view of the changes (default ChangeViewMode.Full).
public string? Question { get; set; } #The question, or null for "Apply these changes?" in the current language.
public string? TypedConfirmation { get; set; } #Text the user must type to confirm (for example a server name), or null.
public bool TypedWhenDestructive { get; set; } #Whether changes that remove objects need a typed confirmation when ChangePreviewOptions.TypedConfirmation is not set: the user types the number of removals (default true).
public InteractiveOptions? Interactive { get; set; } #Prompt options (input, target, labels), or null for the defaults.
Extension Methods
public static ChangePreviewOptions Interactive(ChangePreviewOptions changePreviewOptions, InteractiveOptions? value) #Sets ChangePreviewOptions.Interactive: Prompt options (input, target, labels), or null for the defaults.
Parameters
- changePreviewOptions ConsoleMonster.Changes.ChangePreviewOptions
- The instance.
- value ConsoleMonster.Interactive.InteractiveOptions?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Changes.ChangePreviewOptions { Interactive = value }; changePreviewOptions.Interactive(value);public static ChangePreviewOptions Interactive(ChangePreviewOptions changePreviewOptions, Action<InteractiveOptions> configure) #Configures ChangePreviewOptions.Interactive in place (creating it when not set): Prompt options (input, target, labels), or null for the defaults.
Parameters
- changePreviewOptions ConsoleMonster.Changes.ChangePreviewOptions
- The instance.
- configure System.Action<ConsoleMonster.Interactive.InteractiveOptions>
- Configures the value.
public static ChangePreviewOptions Mode(ChangePreviewOptions changePreviewOptions, ChangeViewMode value) #Sets ChangePreviewOptions.Mode: The view of the changes (default ChangeViewMode.Full).
Parameters
- changePreviewOptions ConsoleMonster.Changes.ChangePreviewOptions
- The instance.
- value ConsoleMonster.Changes.ChangeViewMode
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Changes.ChangePreviewOptions { Mode = value }; changePreviewOptions.Mode(value);public static ChangePreviewOptions Question(ChangePreviewOptions changePreviewOptions, string? value) #Sets ChangePreviewOptions.Question: The question, or null for "Apply these changes?" in the current language.
Parameters
- changePreviewOptions ConsoleMonster.Changes.ChangePreviewOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Changes.ChangePreviewOptions { Question = value }; changePreviewOptions.Question(value);public static ChangePreviewOptions Title(ChangePreviewOptions changePreviewOptions, string? value) #Sets ChangePreviewOptions.Title: A title above the preview (markup), or null.
Parameters
- changePreviewOptions ConsoleMonster.Changes.ChangePreviewOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Changes.ChangePreviewOptions { Title = value }; changePreviewOptions.Title(value);public static ChangePreviewOptions TypedConfirmation(ChangePreviewOptions changePreviewOptions, string? value) #Sets ChangePreviewOptions.TypedConfirmation: Text the user must type to confirm (for example a server name), or null.
Parameters
- changePreviewOptions ConsoleMonster.Changes.ChangePreviewOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Changes.ChangePreviewOptions { TypedConfirmation = value }; changePreviewOptions.TypedConfirmation(value);public static ChangePreviewOptions TypedWhenDestructive(ChangePreviewOptions changePreviewOptions, bool value = true) #Sets ChangePreviewOptions.TypedWhenDestructive: Whether changes that remove objects need a typed confirmation when ChangePreviewOptions.TypedConfirmation is not set: the user types the number of removals (default true).
Parameters
- changePreviewOptions ConsoleMonster.Changes.ChangePreviewOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Changes.ChangePreviewOptions { TypedWhenDestructive = value }; changePreviewOptions.TypedWhenDestructive(value);