Table of Contents

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

pid int

The ID of the table or column parameter.

displayKey string

The display key.

Returns

string

The primary key that corresponds with the specified display key or null if not found.

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

parameterName string

The name of the table or column parameter.

displayKey string

The display key.

Returns

string

The primary key that corresponds with the specified display key or null if not found.

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.