Sets (or adds) the value of the parameter with the given name.
[EditorBrowsable(EditorBrowsableState.Never)]
public void Add<T>(string name, T? value)
Name of the argument being set.
Value of the argument.
This method is similar to SetValue(Int32, Object?) but can also add values to parameters which haven't been assigned a value yet, and supports object initialization syntax so you can write code like:
var args = new ArgumentCollection(parameters)
{
{ "message", "hello" },
{ "count", 25 },
{ "enabled", true },
};