C# Класс NuGetConsole.Host.PowerShell.Implementation.NuGetHostUserInterface

Наследование: System.Management.Automation.Host.PSHostUserInterface, IHostUISupportsMultipleChoiceSelection
Показать файл Открыть проект

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