PowerShell.AddParameters
Method
Definition
Overloads
| AddParameters(IDictionary) |
Adds a set of parameters to the last added command. |
| AddParameters(IList) |
Adds a set of parameters to the last added command. |
AddParameters(IDictionary)
Adds a set of parameters to the last added command.
public System.Management.Automation.PowerShell AddParameters (System.Collections.IDictionary parameters);
- parameters
- IDictionary
Dictionary of parameters. Each key-value pair corresponds to a parameter name and its value. Keys must strings.
A PowerShell instance with the items in parameters added
to the parameter list of the last command.
The function was given a null argument.
Powershell instance cannot be changed in its current state.
One of the dictionary keys is not a string.
Remarks
This method is not thread safe.
AddParameters(IList)
Adds a set of parameters to the last added command.
public System.Management.Automation.PowerShell AddParameters (System.Collections.IList parameters);
- parameters
- IList
List of parameters.
A PowerShell instance with the items in parameters added
to the parameter list of the last command.
The function was given a null argument.
Powershell instance cannot be changed in its current state.
Remarks
This method is not thread safe.