ChangePreviewOptionsFluent
ConsoleMonster.Changes
The fluent methods of ChangePreviewOptions, generated from its public properties: A property-named method sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- object
- ChangePreviewOptionsFluent
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 }; Ui.Options<global::ConsoleMonster.Changes.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 }; Ui.Options<global::ConsoleMonster.Changes.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 }; Ui.Options<global::ConsoleMonster.Changes.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 }; Ui.Options<global::ConsoleMonster.Changes.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 }; Ui.Options<global::ConsoleMonster.Changes.ChangePreviewOptions>().TypedConfirmation(value);public static ChangePreviewOptions TypedWhenDestructive(ChangePreviewOptions changePreviewOptions, bool value) #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
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Changes.ChangePreviewOptions { TypedWhenDestructive = value }; Ui.Options<global::ConsoleMonster.Changes.ChangePreviewOptions>().TypedWhenDestructive(value);public static ChangePreviewOptions TypedWhenDestructive(ChangePreviewOptions changePreviewOptions) #Sets ChangePreviewOptions.TypedWhenDestructive to true.
Parameters
- changePreviewOptions ConsoleMonster.Changes.ChangePreviewOptions
- The instance to configure.