Table of Contents

Method FindDisplayKey

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

FindDisplayKey(int, string)

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

public virtual string FindDisplayKey(int pid, string primaryKey)

Parameters

pid int

The ID of the table or column parameter.

primaryKey string

The primary key.

Returns

string

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

Examples

Element element = engine.FindElement(400, 2000);
string displayKey = element.FindDisplayKey(1000, "1");

FindDisplayKey(string, string)

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

public virtual string FindDisplayKey(string parameterName, string primaryKey)

Parameters

parameterName string

The name of the table or column parameter.

primaryKey string

The primary key.

Returns

string

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

Examples

Element element = engine.FindElement(400, 2000);
string displayKey = element.FindDisplayKey("Overview", "1");

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.