Method FindPrimaryKey
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
FindPrimaryKey(int, string)
Gets the primary key that corresponds with the specified display key.
public virtual string FindPrimaryKey(int pid, string displayKey)
Parameters
Returns
Examples
var dummy = engine.GetDummy("dummy1");
string primaryKey = dummy.FindPrimaryKey(1000, "Main");
FindPrimaryKey(string, string)
Gets the primary key that corresponds with the specified 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 string FindPrimaryKey(string parameterName, string displayKey)
Parameters
Returns
Examples
var dummy = engine.GetDummy("dummy1");
string primaryKey = dummy.FindPrimaryKey("Overview", "Main");
Remarks
The specified value for the parameterName argument should be the value of the Description tag of the parameter and not the value of the Name tag.