Table of Contents

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 string

The name of the property.

Returns

string

The property value or null if there is no property with the specified name.

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.