Method HasProperty
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
HasProperty(string)
Determines whether a property with the specified name exists.
public virtual bool HasProperty(string propertyName)
Parameters
propertyName
stringThe name of the property.
Returns
- bool
true
if a property with the specified name exists; otherwise,false
.
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");
...
}
}
}