Click to Rate and Give Feedback
Collapse All/Expand All Collapse All
System.Management.Automation.Host Namespace
This namespace contains the classes, enumerations, and interfaces that are used to define the host that is used by the Windows PowerShell runtime to communicate with the user.
ClassDescription
ChoiceDescriptionDefines a choice that can be presented to the user by the Host interface, such as Yes to &All.
FieldDescriptionRepresents an option that is used in a Windows PowerShell prompt call.
HostExceptionThe exception thrown when the host cannot complete an operation, such as when the host is checking whether there is any input available.
PromptingExceptionThe exception that is thrown when an error occurs while the host displays a prompt for a command parameter.
PSHostDefines the properties and methods required to create a custom host.
PSHostRawUserInterfaceDefines the low-level user functionality, such as read and write, that a host application can implement to support cmdlets that perform character-mode interaction with the user.
PSHostUserInterfaceDefines those members used to perform dialog-oriented and line-oriented interaction between the cmdlet and the user, such as writing to, prompting for, and reading from user input.
InterfaceDescription
IHostSupportsInteractiveSessionProvides support for opening and closing, entering and exiting, a PSSession on a computer. This class is introduced in Windows PowerShell 2.0.
IHostUISupportsMultipleChoiceSelectionProvides a set of choices that enable the user to choose one or more options. This interface is introduced in Windows PowerShell 2.0.
StructureDescription
BufferCellRepresents a buffer cell that has a specific character, foreground color, background color, and cell type.
CoordinatesDefines the X (column) and Y (row) coordinates that are used to describe the corners of a Rectangle object.
KeyInfoRepresents key information such as the character, virtual key code, the state of any associated control keys, and the state of the key (down).
RectangleRepresents a rectangular region of the screen.
SizeRepresents a width and height pair.
EnumerationDescription
BufferCellTypeDefines the type of buffer cells that can be used to display single-cell or double-cell characters. For example, is the cell complete or is a leading or trailing cell for double-cell characters.
ControlKeyStatesDefines the states of specific control keys, such as the ALT key, CTRL key, SCROLL key, and CAPSLOCK key.
ReadKeyOptionsDefines the options used to control the behavior of the ReadKey method.

Send comments about this topic to Microsoft.
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker