Method SetPropertyValue
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
SetPropertyValue(string, string)
Sets the value of a property.
public virtual void SetPropertyValue(string propertyName, string propertyValue)
Parameters
Examples
Element element = engine.FindElement("MyElement");
if(element != null)
{
Interface myInterface = element.GetInterface("MyInterface");
if(myInterface != null)
{
if(myInterface.HasProperty("MyProperty"))
{
myInterface.SetPropertyValue("MyProperty", "MyPropertyValue");
}
}
}
Remarks
If there is no property with the specified name for this interface, the set will not be performed.