Table of Contents

Method GetReadParameterIDFromWrite

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

GetReadParameterIDFromWrite(int)

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

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.

GetReadParameterIDFromWrite(string)

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

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.")]
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.

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.