Méthode | Description | |
---|---|---|
Prompt ( string caption, string message, System |
Prompts the user for input. In this example this functionality is not needed so the method throws a NotImplementException exception.
|
|
PromptForChoice ( string caption, string message, System |
Provides a set of choices that enable the user to choose a single option from a set of options. In this example this functionality is not needed so the method throws a NotImplementException exception.
|
|
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. In this example this functionality is not needed so the method throws a NotImplementException exception.
|
|
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. In this example this functionality is not needed so the method throws a NotImplementException exception.
|
|
ReadLine ( ) : string |
Reads characters that are entered by the user until a newline (carriage return) is encountered.
|
|
ReadLineAsSecureString ( ) : System.Security.SecureString |
Reads characters entered by the user until a newline (carriage return) is encountered and returns the characters as a secure string. In this example this functionality is not needed so the method throws a NotImplementException exception.
|
|
Write ( ConsoleColor foregroundColor, ConsoleColor backgroundColor, string value ) : void |
Writes characters to the output display of the host and specifies the foreground and background colors of the characters. This implementation ignores the colors.
|
|
Write ( string value ) : void |
Writes characters to the output display of the host.
|
|
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.
|
|
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.
|
public Prompt ( string caption, string message, System |
||
caption | string | The caption or title of the prompt. |
message | string | The text of the prompt. |
descriptions | System |
A collection of FieldDescription objects that /// describe each field of the prompt. |
Résultat | PSObject>.Dictionary |
public PromptForChoice ( string caption, string message, System |
||
caption | string | Text that proceeds (a title) the choices. |
message | string | A message that describes the choice. |
choices | System |
A collection of ChoiceDescription objects that describes /// each choice. |
defaultChoice | int | The index of the label in the Choices parameter /// collection. To indicate no default choice, set to -1. |
Résultat | int |
public PromptForCredential ( string caption, string message, string userName, string targetName ) : System.Management.Automation.PSCredential | ||
caption | string | The caption for 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. |
Résultat | 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 for 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 | A PSCredentialTypes constant that /// identifies the type of credentials that can be returned. |
options | PSCredentialUIOptions | A PSCredentialUIOptions constant that identifies the UI /// behavior when it gathers the credentials. |
Résultat | System.Management.Automation.PSCredential |
public ReadLineAsSecureString ( ) : System.Security.SecureString | ||
Résultat | System.Security.SecureString |
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. |
Résultat | void |
public Write ( string value ) : void | ||
value | string | The characters to be written. |
Résultat | void |
public WriteDebugLine ( string message ) : void | ||
message | string | The debug message that is displayed. |
Résultat | void |
public WriteErrorLine ( string value ) : void | ||
value | string | The error message that is displayed. |
Résultat | 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. |
Résultat | void |
public WriteLine ( string value ) : void | ||
value | string | The line to be written. |
Résultat | 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. |
Résultat | void |
public WriteVerboseLine ( string message ) : void | ||
message | string | The verbose message that is displayed. |
Résultat | void |
public WriteWarningLine ( string message ) : void | ||
message | string | The warning message that is displayed. |
Résultat | void |