Method GetWriteParameterIDFromRead
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
GetWriteParameterIDFromRead(string)
Gets the ID of the write parameter that corresponds with the specified read parameter.
public virtual int GetWriteParameterIDFromRead(string name)
Parameters
name
stringThe name of the read parameter.
Returns
- int
The ID of the corresponding write 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 writeParameterId = element.GetWriteParameterIDFromRead("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.
GetWriteParameterIDFromRead(int)
Gets the ID of the write parameter that corresponds with the specified read parameter.
public virtual int GetWriteParameterIDFromRead(int pid)
Parameters
pid
intThe ID of the read parameter.
Returns
- int
The ID of the corresponding write 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 writeParameterId = element.GetWriteParameterIDFromRead(100);