Click or drag to resize
Galactic API

PowerShellScriptRunAsynchronously Method

Runs a PowerShell script/command asynchronously.

Namespace:  Galactic.PowerShell
Assembly:  Galactic.PowerShell (in Galactic.PowerShell.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public WaitHandle RunAsynchronously(
	string commandText,
	PowerShellProcessResults callback,
	Dictionary<string, Object> stateValues = null,
	PSDataCollection<string> input = null,
	params KeyValuePair<string, Object>[] parameterList
)

Parameters

commandText
Type: SystemString
The text of the command to run.
callback
Type: Galactic.PowerShellPowerShellProcessResults
The callback function used to process the results of the asynchronous run.
stateValues (Optional)
Type: System.Collections.GenericDictionaryString, Object
[Optional] A collection of named state values that should be passed through the invocation to the callback function.
input (Optional)
Type: PSDataCollectionString
[Optional] A collection of strings representing command-line input sent to the command/script during execution.
parameterList
Type: System.Collections.GenericKeyValuePairString, Object
A dictionary of additional parameters to supply to the PowerShell script/command.

Return Value

Type: WaitHandle

Implements

IPowerShellScriptRunAsynchronously(String, PowerShellProcessResults, DictionaryString, Object, PSDataCollectionString, KeyValuePairString, Object)
See Also