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

Element element = engine.FindElement(400, 2000);
string primaryKey = element.FindPrimaryKey(1000, "Main");

FindPrimaryKey(string, string)

Gets the primary key that corresponds with the specified display key.

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

Element element = engine.FindElement(400, 2000);
string primaryKey = element.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.