C# Класс GitScc.Blinkbox.Powershell.PowershellHostUserInterface

User interface reuqured for a powershell host.
Наследование: System.Management.Automation.Host.PSHostUserInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
Prompt ( string caption, string message, System descriptions ) : PSObject>.Dictionary

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 choices, int defaultChoice ) : int

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.

Описание методов

Prompt() публичный Метод

Prompts the user for input. In this example this functionality is not needed so the method throws a NotImplementException exception.
public Prompt ( string caption, string message, System descriptions ) : PSObject>.Dictionary
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.
Результат PSObject>.Dictionary

PromptForChoice() публичный Метод

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.
public PromptForChoice ( string caption, string message, System choices, int defaultChoice ) : int
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.
Результат int

PromptForCredential() публичный Метод

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.
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.
Результат System.Management.Automation.PSCredential

PromptForCredential() публичный Метод

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.
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.
Результат System.Management.Automation.PSCredential

ReadLine() публичный Метод

Reads characters that are entered by the user until a newline (carriage return) is encountered.
public ReadLine ( ) : string
Результат string

ReadLineAsSecureString() публичный Метод

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.
public ReadLineAsSecureString ( ) : System.Security.SecureString
Результат System.Security.SecureString

Write() публичный Метод

Writes characters to the output display of the host and specifies the foreground and background colors of the characters. This implementation ignores the colors.
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.
Результат void

Write() публичный Метод

Writes characters to the output display of the host.
public Write ( string value ) : void
value string The characters to be written.
Результат void

WriteDebugLine() публичный Метод

Writes a debug message to the output display of the host.
public WriteDebugLine ( string message ) : void
message string The debug message that is displayed.
Результат void

WriteErrorLine() публичный Метод

Writes an error message to the output display of the host.
public WriteErrorLine ( string value ) : void
value string The error message that is displayed.
Результат void

WriteLine() публичный Метод

Writes a newline character (carriage return) to the output display of the host.
public WriteLine ( ) : void
Результат void

WriteLine() публичный Метод

Writes a line of characters to the output display of the host with foreground and background colors and appends a newline (carriage return).
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.
Результат void

WriteLine() публичный Метод

Writes a line of characters to the output display of the host and appends a newline character(carriage return).
public WriteLine ( string value ) : void
value string The line to be written.
Результат void

WriteProgress() публичный Метод

Writes a progress report to the output display of the host.
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.
Результат void

WriteVerboseLine() публичный Метод

Writes a verbose message to the output display of the host.
public WriteVerboseLine ( string message ) : void
message string The verbose message that is displayed.
Результат void

WriteWarningLine() публичный Метод

Writes a warning message to the output display of the host.
public WriteWarningLine ( string message ) : void
message string The warning message that is displayed.
Результат void