Method GetRawValue
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
GetRawValue(int, string)
Gets the value that corresponds with the specified display value of the specified parameter.
public virtual string GetRawValue(int pid, string displayValue)
Parameters
pid
intThe ID of the parameter.
displayValue
stringThe display value for which the raw value has to be determined.
Returns
- string
The raw value that corresponds with the specified display value.
In case the parameter was not found, the specified value indisplayValue
is returned.
In case the parameter was found, but the display value is not specified in the parameter, null is returned.
Examples
Element element = engine.FindElement(400, 2000);
string rawValue = element.GetRawValue(100, "Main");
Remarks
Used with parameters defining discrete entries to retrieve the raw value (e.g. "1") for a specific display value (e.g. “Main”).
GetRawValue(string, string)
Gets the value that corresponds with the specified display value of the specified parameter.
public virtual string GetRawValue(string name, string displayValue)
Parameters
name
stringThe name of the parameter.
displayValue
stringThe display value for which the raw value has to be determined.
Returns
- string
The raw value that corresponds with the specified display value.
In case the parameter was not found, the specified value indisplayValue
is returned.
In case the parameter was found, but the display value is not specified in the parameter, null is returned.
Examples
Element element = engine.FindElement(400, 2000);
string rawValue = element.GetRawValue("MyDiscreteParameter", "Main");
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.
Used with parameters defining discrete entries to retrieve the raw value (e.g. "1") for a specific display value (e.g. “Main”).