Property | Type | Description | |
---|---|---|---|
ContentProperty | |||
ProgressProperty |
Property | Type | Description | |
---|---|---|---|
BuildHotkeysAndPlainLabels | ].string[ | ||
GetHotkeyAndLabel | string[] | ||
GetSingle | System.Management.Automation.PSObject | ||
TryConvertTo | System.Management.Automation.PSInvalidCastException |
Method | Description | |
---|---|---|
Invoke ( string script, ConsoleOutput output = ConsoleOutput.Default ) : Collection |
Invoke the specified script, synchronously, and return the pipeline output.
|
|
InvokeAsync ( Command commands, IEnumerable input = null, ConsoleOutput output = ConsoleOutput.Default ) : Task |
Invoke the specified commands in a pipeline asynchronously, optionally providing input to the first command, and with the specified output handling.
|
|
InvokeAsync ( string command, bool isScript = true, bool useLocalScope = false, IEnumerable input = null, ConsoleOutput output = ConsoleOutput.Default ) : Task |
Invoke the specified command in a pipeline asynchronously, optionally providing input to the first command, and with the specified output handling.
|
|
OnPromptForChoice ( |
||
OnPromptForObject ( |
||
PoshConsole ( ) : System | ||
PromptForCredentialInline ( string caption, string message, string userName, string targetName, PSCredentialTypes allowedCredentialTypes = PSCredentialTypes.Generic, PSCredentialUIOptions options = PSCredentialUIOptions.None ) : System.Management.Automation.PSCredential | ||
WriteErrorRecord ( |
||
WriteErrorRecords ( Collection |
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void | ||
OnCommand ( |
||
OnInitialized ( |
Method | Description | |
---|---|---|
BuildHotkeysAndPlainLabels ( Collection |
This is a private worker function that splits out the accelerator keys from the menu and builds a two dimentional array with the first access containing the accelerator and the second containing the label string with & removed.
|
|
GetHotkeyAndLabel ( string input ) : string[] |
Parse a string containing a hotkey character. Take a string of the form: "Yes to &all" And return a two-dimensional array split out as "A", "Yes to all".
|
|
GetSingle ( string caption, string message, string prompt, System.Management.Automation.Host.FieldDescription field, |
||
TryConvertTo ( |
public Invoke ( string script, ConsoleOutput output = ConsoleOutput.Default ) : Collection |
||
script | string | The script from which the pipeline will be constructed. Can be just a command name, but is executed as though typed on the console. |
output | ConsoleOutput | Optionally: what to print to the console (prints everything, by default, as though the user had typed the commands in the console) |
return | Collection |
public InvokeAsync ( Command commands, IEnumerable input = null, ConsoleOutput output = ConsoleOutput.Default ) : Task |
||
commands | Command | Commands from which the pipeline will be constructed |
input | IEnumerable | Optional Pipeline Input. If this is specified, your first command must accept pipeline input |
output | ConsoleOutput | Optionally: what to print to the console (prints everything, by default, as though the user had typed the commands in the console) |
return | Task |
public InvokeAsync ( string command, bool isScript = true, bool useLocalScope = false, IEnumerable input = null, ConsoleOutput output = ConsoleOutput.Default ) : Task |
||
command | string | The Command from which the pipeline will be constructed. |
isScript | bool | Whether the command is a script (defaults to true). You should set this to false if you are just naming a command. |
useLocalScope | bool | Whether the command should use it's own local scope -- only valid for scripts (defaults to false) |
input | IEnumerable | Optional Pipeline Input. If this is specified, your first command must accept pipeline input |
output | ConsoleOutput | Optionally: what to print to the console (prints everything, by default, as though the user had typed the commands in the console) |
return | Task |
protected OnCommand ( |
||
command | ||
return | void |
protected OnInitialized ( |
||
e | ||
return | void |
public OnPromptForChoice ( |
||
e | ||
return | int |
public OnPromptForObject ( |
||
e | ||
return | PSObject>.Dictionary |
public PromptForCredentialInline ( string caption, string message, string userName, string targetName, PSCredentialTypes allowedCredentialTypes = PSCredentialTypes.Generic, PSCredentialUIOptions options = PSCredentialUIOptions.None ) : System.Management.Automation.PSCredential | ||
caption | string | |
message | string | |
userName | string | |
targetName | string | |
allowedCredentialTypes | PSCredentialTypes | |
options | PSCredentialUIOptions | |
return | System.Management.Automation.PSCredential |
public WriteErrorRecord ( |
||
errorRecord | ||
return | void |
public WriteErrorRecords ( Collection | ||
errorRecords | Collection | |
return | void |
public static DependencyProperty,System.Windows ContentProperty | ||
return |