C# Class PSAttack.PSAttackShell.PSAttackHostUserInterface

Inheritance: System.Management.Automation.Host.PSHostUserInterface
Show file Open project: jaredhaight/PSAttack

Public Methods

Method Description
Prompt ( string caption, string message, System descriptions ) : System.Management.Automation.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
ReadLineAsSecureString ( ) : SecureString
Write ( ConsoleColor foregroundColor, ConsoleColor backgroundColor, string message ) : void
Write ( string message ) : void
WriteDebugLine ( string message ) : void
WriteErrorLine ( string message ) : void
WriteLine ( string message ) : void
WriteProgress ( long sourceId, System.Management.Automation.ProgressRecord record ) : void
WriteVerboseLine ( string message ) : void
WriteWarningLine ( string message ) : void

Private Methods

Method Description
GetCreds ( string caption, string message ) : System.Management.Automation.PSCredential
GetParameters ( System descriptions ) : System.Management.Automation.PSObject>.Dictionary

Method Details

Prompt() public method

public Prompt ( string caption, string message, System descriptions ) : System.Management.Automation.PSObject>.Dictionary
caption string
message string
descriptions System
return System.Management.Automation.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

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 message ) : void
foregroundColor ConsoleColor
backgroundColor ConsoleColor
message string
return void

Write() public method

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

WriteDebugLine() public method

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

WriteErrorLine() public method

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

WriteLine() public method

public WriteLine ( string message ) : void
message 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