| IPowerShellScriptRunAsynchronously 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 WaitHandle RunAsynchronously(
string commandText,
PowerShellProcessResults callback,
Dictionary<string, Object> stateValues = null,
PSDataCollection<string> input = null,
params KeyValuePair<string, Object>[] parameterList
)
Function RunAsynchronously (
commandText As String,
callback As PowerShellProcessResults,
Optional stateValues As Dictionary(Of String, Object) = Nothing,
Optional input As PSDataCollection(Of String) = Nothing,
ParamArray parameterList As KeyValuePair(Of String, Object)()
) As WaitHandle
WaitHandle^ RunAsynchronously(
String^ commandText,
PowerShellProcessResults^ callback,
Dictionary<String^, Object^>^ stateValues = nullptr,
PSDataCollection<String^>^ input = nullptr,
... array<KeyValuePair<String^, Object^>>^ parameterList
)
abstract RunAsynchronously :
commandText : string *
callback : PowerShellProcessResults *
?stateValues : Dictionary<string, Object> *
?input : PSDataCollection<string> *
parameterList : KeyValuePair<string, Object>[]
(* Defaults:
let _stateValues = defaultArg stateValues null
let _input = defaultArg input null
*)
-> WaitHandle
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:
WaitHandleSee Also