Method FindParameterID
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
FindParameterID(string)
Gets the ID that corresponds with the specified parameter name.
public virtual int FindParameterID(string name)
Parameters
name
stringThe name of the parameter.
Returns
- int
The ID that corresponds with the specified parameter name or -1 if the parameter was not found.
Examples
Element element = engine.FindElement(400, 2000);
int parameterId = element.FindParameterID("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.
FindParameterID(string, bool)
Gets the ID that corresponds with the specified parameter name.
public virtual int FindParameterID(string name, bool writeParam)
Parameters
name
stringThe name of the parameter.
writeParam
booltrue
if the specified parameter is a write parameter; otherwise,false
.
Returns
- int
The ID that corresponds with the specified parameter name or -1 if the parameter was not found.
Examples
Element element = engine.FindElement(400, 2000);
int parameterId = element.FindParameterID("MyParameter", true);
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.