Method SetParameter
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
SetParameter(string, object)
Sets the value of the specified parameter.
public virtual void SetParameter(string name, object value)
Parameters
Examples
Element element = engine.FindElement(400, 2000);
element.SetParameter("Example Parameter", "Example Value");
Remarks
The specified value for the name
argument should be the value of the Description tag of the parameter and not the value of the Name tag.
Exceptions
- DataMinerException
name
is invalid.
SetParameter(int, object)
Sets the value of the specified parameter.
public virtual void SetParameter(int pid, object value)
Parameters
Examples
Element element = engine.FindElement(400, 2000);
element.SetParameter(100, "Example Value");
Exceptions
- DataMinerException
pid
is invalid.
SetParameter(string, string, object)
Sets the value of the specified cell.
public virtual void SetParameter(string name, string idx, object value)
Parameters
name
stringThe name of the column parameter.
idx
stringThe display key of the row.
value
objectThe value to set.
Examples
Element element = engine.FindElement(400, 2000);
element.SetParameter("Example Column Parameter", "Row 1", "Example Value");
Remarks
The specified value for the name
argument should be the value of the Description tag of the parameter and not the value of the Name tag.
Exceptions
- DataMinerException
name
is invalid.
SetParameter(int, string, object)
Sets the value of the specified cell.
public virtual void SetParameter(int pid, string idx, object value)
Parameters
pid
intThe ID of the column parameter.
idx
stringThe display key of the row.
value
objectThe value to set.
Examples
Element element = engine.FindElement(400, 2000);
element.SetParameter(5003, "Row 1", "Example Value");
Exceptions
- DataMinerException
pid
is invalid.