API Reference
Enum
InteractionMode
How prompts, menus and forms talk to the user.
Inheritance
- Enum
- InteractionMode
Usage
Explore 6 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 6
- Field InteractionMode.Accessible
- Field InteractionMode.Line
- Field InteractionMode.None
- Field InteractionMode.Rich
- Method InteractiveOptions.ResolveMode
- Property InteractiveOptions.Mode
Inherited Methods
public override Boolean Equals(Object? obj) #Returns:
BooleanInherited from Enum
Parameters
- obj Object?
ToString 4 overloads
public String ToString(IFormatProvider? provider) #Returns:
StringInherited from Enum
Obsolete("The provider argument is not used. Use ToString() instead.")Parameters
- provider IFormatProvider?
public String ToString(String? format, IFormatProvider? provider) #Returns:
StringInherited from Enum
Obsolete("The provider argument is not used. Use ToString(String) instead.")Parameters
- format String?
- provider IFormatProvider?
Values
public const InteractionMode Rich #Raw keys and in-place redraws: filtering lists, focus bars, the app shell.
Value:
0public const InteractionMode Line #Line-based prompts: a question, then a typed answer. Used where raw keys or redraws are unavailable (PowerShell remoting, the ISE, consoles without VT).
Value:
1public const InteractionMode Accessible #Sequential plain prompts for screen readers and braille displays: numbered choices, no redraws, every state written as text (CONSOLEMONSTER_ACCESSIBLE=1).
Value:
2public const InteractionMode None #No user is there to answer (CI, redirected input, -NonInteractive): prompts return their default or fail with a clear message.
Value:
3