Table of Contents

Method GetReadParameterIDFromWrite

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

GetReadParameterIDFromWrite(string)

Gets the ID of the read parameter that corresponds with the specified write parameter ID.

public virtual int GetReadParameterIDFromWrite(string name)

Parameters

name string

The name of the write parameter.

Returns

int

The ID of the corresponding read parameter. Returns -1 in case the specified parameter was not found or if there is no corresponding write parameter.

Examples

Element element = engine.FindElement(400, 2000);
int readParameterId = element.GetReadParameterIDFromWrite("MyParameter");

Remarks

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

GetReadParameterIDFromWrite(int)

Gets the ID of the read parameter that corresponds with the specified write parameter ID.

public virtual int GetReadParameterIDFromWrite(int pid)

Parameters

pid int

The ID of the write parameter.

Returns

int

The ID of the corresponding read parameter. Returns -1 in case the specified parameter was not found or if there is no corresponding write parameter.

Examples

Element element = engine.FindElement(400, 2000);
int readParameterId = element.GetReadParameterIDFromWrite(101);