Method SetParameterByPrimaryKey
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
SetParameterByPrimaryKey(int, string, object)
Sets the value of a cell specified using the primary key instead of the display key.
public virtual void SetParameterByPrimaryKey(int pid, string primaryKey, object value)
Parameters
pidintThe ID of the column parameter.
primaryKeystringThe primary key of the row.
valueobjectThe value to set.
Examples
var dummy = engine.GetDummy("dummy1");
dummy.SetParameterByPrimaryKey(5003, "Row 1", "Example Value");
Exceptions
- DataMinerException
pidis invalid.
SetParameterByPrimaryKey(string, string, object)
Sets the value of a cell specified using the primary key instead of the display key.
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 SetParameterByPrimaryKey(string name, string primaryKey, object value)
Parameters
namestringThe name of the column parameter.
primaryKeystringThe primary key of the row.
valueobjectThe value to set.
Examples
var dummy = engine.GetDummy("dummy1");
dummy.SetParameterByPrimaryKey("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.