Table of Contents

Method HasProperty

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

HasProperty(string)

Determines whether this service has a property with the specified property name.

public virtual bool HasProperty(string propertyName)

Parameters

propertyName string

The name of the service property.

Returns

bool

true if the service has a property with the given name.; otherwise, false.

Examples

var myService = engine.FindService(179, 15629);
if(myService.HasProperty("myProperty"))
{
	string myPropertyValue = myService.GetPropertyValue("myProperty");
}