Method GetParameter
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
GetParameter(int)
Gets the value of the specified parameter.
public virtual object GetParameter(int pid)
Parameters
pid
intThe ID of the parameter.
Returns
- object
The value of the parameter.
Examples
Element element = engine.FindElement(400, 2000);
var value = element.GetParameter(10);
Exceptions
- DataMinerException
The specified parameter was not found.
-or-
The specified parameter is invalid.
GetParameter(string)
Gets the value of the specified parameter.
public virtual object GetParameter(string name)
Parameters
name
stringThe name of the parameter.
Returns
- object
The value of the parameter.
Examples
Element element = engine.FindElement(400, 2000);
var value = element.GetParameter("MyParameter");
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
The specified parameter was not found.
-or-
The specified parameter is incorrect.
GetParameter(int, string)
Gets the value of the specified table cell.
public virtual object GetParameter(int pid, string idx)
Parameters
Returns
- object
The value of the parameter.
Examples
Element element = engine.FindElement(400, 2000);
var value = element.GetParameter(1000, "1");
Exceptions
- DataMinerException
The specified parameter was not found.
-or-
The specified parameter is incorrect.
GetParameter(string, string)
Gets the value of the specified table cell.
public virtual object GetParameter(string name, string idx)
Parameters
Returns
- object
The value of the parameter.
Examples
Element element = engine.FindElement(400, 2000);
var value = element.GetParameter("MyTableColumn", "1");
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
The specified parameter was not found.
-or-
The specified parameter is incorrect.