Method GetPropertyValue
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
GetPropertyValue(string)
Gets the value of a property by providing the property name.
public virtual string GetPropertyValue(string propertyName)
Parameters
propertyName
stringThe name of the property.
Returns
Examples
Element element = engine.FindElement("MyElement");
if(element != null)
{
Interface myInterface = element.GetInterface("MyInterface");
if(myInterface != null)
{
if(myInterface.HasProperty("MyProperty"))
{
string propertyValue = myInterface.GetPropertyValue("MyProperty");
...
}
}
}
Remarks
To test if the interface has a specific property, use the HasProperty(string) method.