Method | Description | |
---|---|---|
PSRemoteUserInterface ( |
||
Prompt ( string caption, string message, Collection |
Prompts the user for input.
|
|
PromptForChoice ( string caption, string message, Collection |
Provides a set of choices that enable the user to choose a single option from a set of options.
|
|
PromptForCredential ( string caption, string message, string userName, string targetName ) : System.Management.Automation.PSCredential |
Prompts the user for credentials with a specified prompt window caption, prompt message, user name, and target name.
|
|
PromptForCredential ( string caption, string message, string userName, string targetName, PSCredentialTypes allowedCredentialTypes, PSCredentialUIOptions options ) : System.Management.Automation.PSCredential |
Prompts the user for credentials by using a specified prompt window caption, prompt message, user name and target name, credential types allowed to be returned, and UI behavior options.
|
|
ReadLine ( ) : string |
Reads characters that are entered by the user until a newline (carriage return) is encountered.
|
|
ReadLineAsSecureString ( ) : |
Reads characters entered by the user until a newline (carriage return) is encountered and returns the characters as a secure string.
|
|
Write ( ConsoleColor foregroundColor, ConsoleColor backgroundColor, string value ) : void |
Writes characters to the output display of the host with possible foreground and background colors.
|
|
Write ( string value ) : void |
Writes a line of characters to the output display of the host and appends a newline (carriage return).
|
|
WriteDebugLine ( string message ) : void |
Writes a debug message to the output display of the host.
|
|
WriteErrorLine ( string value ) : void |
Writes an error message to the output display of the host.
|
|
WriteLine ( ) : void |
Writes a newline character (carriage return) to the output display of the host.
|
|
WriteLine ( ConsoleColor foregroundColor, ConsoleColor backgroundColor, string value ) : void |
Writes a line of characters to the output display of the host with foreground and background colors and appends a newline (carriage return).
|
|
WriteLine ( string value ) : void |
Writes a line of characters to the output display of the host and appends a newline character(carriage return).
|
|
WriteProgress ( long sourceId, System.Management.Automation.ProgressRecord record ) : void |
Writes a progress report to the output display of the host. Wrinting a progress report is not required for the cmdlet to work so it is better to do nothing instead of throwing an exception.
|
|
WriteVerboseLine ( string message ) : void |
Writes a verbose message to the output display of the host.
|
|
WriteWarningLine ( string message ) : void |
Writes a warning message to the output display of the host.
|
Method | Description | |
---|---|---|
BuildHotkeysAndPlainLabels ( IEnumerable |
This is a private worker function splits out the accelerator keys from the menu and builds a two dimentional array with the first access containing the accelerator and the second containing the label string with the & removed.
|
|
FormatColor ( Color color ) : string | ||
FormatWithColor ( string value, Color foregroundColorValue, Color backgroundColorValue ) : string | ||
GetHotkeyAndLabel ( string input ) : string>.Tuple |
Parse a string containing a hotkey character. Take a string of the form Yes to &all and returns a two-dimensional array split out as "A", "Yes to all".
|
|
MapColor ( ConsoleColor consoleColor ) : Color | ||
ReadLineInternal ( bool secure, string overrideProppt = null ) : string |
public PSRemoteUserInterface ( |
||
buffers | ||
return | System |
public Prompt ( string caption, string message, Collection |
||
caption | string | Text that preceeds the prompt (a title). |
message | string | Text of the prompt. |
descriptions | Collection |
A collection of FieldDescription objects /// that contains the user input. |
return | PSObject>.Dictionary |
public PromptForChoice ( string caption, string message, Collection |
||
caption | string | A title that proceeds the choices. |
message | string | An introduction message that describes the /// choices. |
choices | Collection |
A collection of ChoiceDescription objects that describ /// each choice. |
defaultChoice | int | The index of the label in the Choices parameter /// collection that indicates the default choice used if the user does not specify /// a choice. To indicate no default choice, set to -1. |
return | int |
public PromptForCredential ( string caption, string message, string userName, string targetName ) : System.Management.Automation.PSCredential | ||
caption | string | The caption of the message window. |
message | string | The text of the message. |
userName | string | The user name whose credential is to be prompted for. |
targetName | string | The name of the target for which the credential is collected. |
return | System.Management.Automation.PSCredential |
public PromptForCredential ( string caption, string message, string userName, string targetName, PSCredentialTypes allowedCredentialTypes, PSCredentialUIOptions options ) : System.Management.Automation.PSCredential | ||
caption | string | The caption of the message window. |
message | string | The text of the message. |
userName | string | The user name whose credential is to be prompted for. |
targetName | string | The name of the target for which the credential is collected. |
allowedCredentialTypes | PSCredentialTypes | PSCredentialTypes cconstants that identify the type of /// credentials that can be returned. |
options | PSCredentialUIOptions | A PSCredentialUIOptions constant that identifies the UI behavior /// when it gathers the credentials. |
return | System.Management.Automation.PSCredential |
public ReadLineAsSecureString ( ) : |
||
return |
public Write ( ConsoleColor foregroundColor, ConsoleColor backgroundColor, string value ) : void | ||
foregroundColor | ConsoleColor | The color of the characters. |
backgroundColor | ConsoleColor | The backgound color to use. |
value | string | The characters to be written. |
return | void |
public Write ( string value ) : void | ||
value | string | The characters to be written. |
return | void |
public WriteDebugLine ( string message ) : void | ||
message | string | The debug message that is displayed. |
return | void |
public WriteErrorLine ( string value ) : void | ||
value | string | The error message that is displayed. |
return | void |
public WriteLine ( ConsoleColor foregroundColor, ConsoleColor backgroundColor, string value ) : void | ||
foregroundColor | ConsoleColor | The forground color of the display. |
backgroundColor | ConsoleColor | The background color of the display. |
value | string | The line to be written. |
return | void |
public WriteLine ( string value ) : void | ||
value | string | The line to be written. |
return | void |
public WriteProgress ( long sourceId, System.Management.Automation.ProgressRecord record ) : void | ||
sourceId | long | Unique identifier of the source of the record. |
record | System.Management.Automation.ProgressRecord | A ProgressReport object. |
return | void |
public WriteVerboseLine ( string message ) : void | ||
message | string | The verbose message that is displayed. |
return | void |
public WriteWarningLine ( string message ) : void | ||
message | string | The warning message that is displayed. |
return | void |