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

var dummy = engine.GetDummy("dummy1");
string[] primaryKeys = dummy.GetTablePrimaryKeys(1000);

GetTablePrimaryKeys(string)

Gets the primary keys of the specified table.

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[] GetTablePrimaryKeys(string tableParameterName)

Parameters

tableParameterName string

The name of the table or column parameter.

Returns

string[]

The primary keys of the specified table.

Examples

var dummy = engine.GetDummy("dummy1");
string[] primaryKeys = dummy.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.