Table of Contents

Method GetTablePrimaryKeys

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

GetTablePrimaryKeys(int)

Gets the primary keys of the specified table.

public virtual string[] GetTablePrimaryKeys(int tablePid)

Parameters

tablePid int

The ID of the table or column parameter.

Returns

string[]

The primary keys of the specified table.

Examples

Element element = engine.FindElement(400, 2000);
string[] primaryKeys = element.GetTablePrimaryKeys(1000);

GetTablePrimaryKeys(string)

Gets the primary keys of the specified table.

public virtual string[] GetTablePrimaryKeys(string tableParameterName)

Parameters

tableParameterName string

The name of the table or column parameter.

Returns

string[]

The primary keys of the specified table.

Examples

Element element = engine.FindElement(400, 2000);
string[] primaryKeys = element.GetTablePrimaryKeys("MyTable");

Remarks

The specified value for the tableParameterName argument should be the value of the Description tag of the parameter and not the value of the Name tag.