C# 클래스 GitScc.Blinkbox.Powershell.PowershellHostUserInterface

User interface reuqured for a powershell host.
상속: System.Management.Automation.Host.PSHostUserInterface
파일 보기 프로젝트 열기: blinkbox/Git-Source-Control-Provider

공개 메소드들

메소드 설명
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