Method SetParameter
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
SetParameter(int, object)
Sets the value of the specified parameter.
public virtual void SetParameter(int pid, object value)
Parameters
Examples
var dummy = engine.GetDummy("dummy1");
dummy.SetParameter(100, "Example Value");
Exceptions
- DataMinerException
pidis invalid.
SetParameter(int, string, object)
Sets the value of the specified cell.
public virtual void SetParameter(int pid, string idx, object value)
Parameters
pidintThe ID of the column parameter.
idxstringThe display key of the row.
valueobjectThe value to set.
Examples
var dummy = engine.GetDummy("dummy1");
dummy.SetParameter(5003, "Row 1", "Example Value");
Exceptions
- DataMinerException
pidis invalid.
SetParameter(string, object)
Sets the value of the specified parameter.
note
Please use an overload that takes the parameter ID instead to prevent issues in case the parameter Description changes.
[Obsolete("Use overloads with parameter ID instead of name.")]
public virtual void SetParameter(string name, object value)
Parameters
Examples
var dummy = engine.GetDummy("dummy1");
dummy.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
nameis invalid.
SetParameter(string, string, object)
Sets the value of the specified cell.
note
Please use an overload that takes the parameter ID instead to prevent issues in case the parameter Description changes.
[Obsolete("Use overloads with parameter ID instead of name.")]
public virtual void SetParameter(string name, string idx, object value)
Parameters
namestringThe name of the column parameter.
idxstringThe display key of the row.
valueobjectThe value to set.
Examples
var dummy = engine.GetDummy("dummy1");
dummy.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
nameis invalid.