C# Class PoshCode.PowerShell.HostUI

Inheritance: System.Management.Automation.Host.PSHostUserInterface
显示文件 Open project: Jaykul/PoshConsole

Protected Properties

Property Type Description
ProgressRecords ProgressPanel>.Dictionary

Public Methods

Method Description
HostUI ( PoshConsole control, System.Windows.Controls.Panel progress ) : System
Prompt ( string caption, string message, Collection descriptions ) : PSObject>.Dictionary
PromptForChoice ( string caption, string message, Collection choices, int defaultChoice ) : int
PromptForCredential ( string caption, string message, string userName, string targetName ) : System.Management.Automation.PSCredential
PromptForCredential ( string caption, string message, string userName, string targetName, PSCredentialTypes allowedCredentialTypes, PSCredentialUIOptions options ) : System.Management.Automation.PSCredential
ReadLine ( ) : string

Provides a way for scripts to request user input ...

ReadLineAsSecureString ( ) : SecureString
Write ( ConsoleColor foregroundColor, ConsoleColor backgroundColor, string value ) : void
Write ( string value ) : void
WriteDebugLine ( string message ) : void
WriteErrorLine ( string value ) : void
WriteLine ( ConsoleColor foregroundColor, ConsoleColor backgroundColor, string value ) : void
WriteLine ( string value ) : void
WriteProgress ( long sourceId, System.Management.Automation.ProgressRecord record ) : void
WriteVerboseLine ( string message ) : void
WriteWarningLine ( string message ) : void

Method Details

HostUI() public method

public HostUI ( PoshConsole control, System.Windows.Controls.Panel progress ) : System
control PoshConsole
progress System.Windows.Controls.Panel
return System

Prompt() public method

public Prompt ( string caption, string message, Collection descriptions ) : PSObject>.Dictionary
caption string
message string
descriptions Collection
return PSObject>.Dictionary

PromptForChoice() public method

public PromptForChoice ( string caption, string message, Collection choices, int defaultChoice ) : int
caption string
message string
choices Collection
defaultChoice int
return int

PromptForCredential() public method

public PromptForCredential ( string caption, string message, string userName, string targetName ) : System.Management.Automation.PSCredential
caption string
message string
userName string
targetName string
return System.Management.Automation.PSCredential

PromptForCredential() public method

public PromptForCredential ( string caption, string message, string userName, string targetName, PSCredentialTypes allowedCredentialTypes, PSCredentialUIOptions options ) : System.Management.Automation.PSCredential
caption string
message string
userName string
targetName string
allowedCredentialTypes PSCredentialTypes
options PSCredentialUIOptions
return System.Management.Automation.PSCredential

ReadLine() public method

Provides a way for scripts to request user input ...
public ReadLine ( ) : string
return string

ReadLineAsSecureString() public method

public ReadLineAsSecureString ( ) : SecureString
return System.Security.SecureString

Write() public method

public Write ( ConsoleColor foregroundColor, ConsoleColor backgroundColor, string value ) : void
foregroundColor ConsoleColor
backgroundColor ConsoleColor
value string
return void

Write() public method

public Write ( string value ) : void
value string
return void

WriteDebugLine() public method

public WriteDebugLine ( string message ) : void
message string
return void

WriteErrorLine() public method

public WriteErrorLine ( string value ) : void
value string
return void

WriteLine() public method

public WriteLine ( ConsoleColor foregroundColor, ConsoleColor backgroundColor, string value ) : void
foregroundColor ConsoleColor
backgroundColor ConsoleColor
value string
return void

WriteLine() public method

public WriteLine ( string value ) : void
value string
return void

WriteProgress() public method

public WriteProgress ( long sourceId, System.Management.Automation.ProgressRecord record ) : void
sourceId long
record System.Management.Automation.ProgressRecord
return void

WriteVerboseLine() public method

public WriteVerboseLine ( string message ) : void
message string
return void

WriteWarningLine() public method

public WriteWarningLine ( string message ) : void
message string
return void

Property Details

ProgressRecords protected_oe property

protected Dictionary ProgressRecords
return ProgressPanel>.Dictionary