C# 클래스 NuGetConsole.Host.PowerShell.Implementation.NuGetHostUserInterface

상속: System.Management.Automation.Host.PSHostUserInterface, IHostUISupportsMultipleChoiceSelection
파일 보기 프로젝트 열기: xero-github/Nuget

Private Properties

프로퍼티 타입 설명
GetFieldType System.Type
PromptCollection bool
PromptScalar bool
ReadLineAsSecureString System.Security.SecureString
ToColor Color?
Write void
WriteLine void

공개 메소드들

메소드 설명
NuGetHostUserInterface ( NuGetPSHost host ) : System
Prompt ( string caption, string message, Collection descriptions ) : PSObject>.Dictionary
PromptForChoice ( string caption, string message, Collection choices, IEnumerable defaultChoices ) : Collection
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
Write ( ConsoleColor foregroundColor, ConsoleColor backgroundColor, string value ) : void
Write ( string value ) : void
WriteDebugLine ( string message ) : void
WriteErrorLine ( string value ) : void
WriteLine ( string value ) : void
WriteProgress ( long sourceId, System.Management.Automation.ProgressRecord record ) : void
WriteVerboseLine ( string message ) : void
WriteWarningLine ( string message ) : void

비공개 메소드들

메소드 설명
GetFieldType ( System.Management.Automation.Host.FieldDescription field ) : Type
PromptCollection ( string name, Type fieldType, object &answer ) : bool
PromptScalar ( string name, Type fieldType, object &answer ) : bool
ReadLineAsSecureString ( ) : SecureString
ToColor ( ConsoleColor c ) : Color?

Convert a System.ConsoleColor enum to a Color value, or null if c is not a valid enum.

Write ( string value, ConsoleColor foregroundColor, ConsoleColor backgroundColor = NoColor ) : void
WriteLine ( string value, ConsoleColor foregroundColor, ConsoleColor backgroundColor = NoColor ) : void

메소드 상세

NuGetHostUserInterface() 공개 메소드

public NuGetHostUserInterface ( NuGetPSHost host ) : System
host NuGetPSHost
리턴 System

Prompt() 공개 메소드

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

PromptForChoice() 공개 메소드

public PromptForChoice ( string caption, string message, Collection choices, IEnumerable defaultChoices ) : Collection
caption string
message string
choices Collection
defaultChoices IEnumerable
리턴 Collection

PromptForChoice() 공개 메소드

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

PromptForCredential() 공개 메소드

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

PromptForCredential() 공개 메소드

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
리턴 System.Management.Automation.PSCredential

ReadLine() 공개 메소드

public ReadLine ( ) : string
리턴 string

Write() 공개 메소드

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

Write() 공개 메소드

public Write ( string value ) : void
value string
리턴 void

WriteDebugLine() 공개 메소드

public WriteDebugLine ( string message ) : void
message string
리턴 void

WriteErrorLine() 공개 메소드

public WriteErrorLine ( string value ) : void
value string
리턴 void

WriteLine() 공개 메소드

public WriteLine ( string value ) : void
value string
리턴 void

WriteProgress() 공개 메소드

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

WriteVerboseLine() 공개 메소드

public WriteVerboseLine ( string message ) : void
message string
리턴 void

WriteWarningLine() 공개 메소드

public WriteWarningLine ( string message ) : void
message string
리턴 void