Table of Contents

Method GetInterface

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

GetInterface(int)

Retrieves the specified DCF interface.

public virtual Interface GetInterface(int interfaceID)

Parameters

interfaceID int

The interface ID.

Returns

Interface

The DCF interface or null if the specified interface was not found.

Examples

Element element = engine.FindElement(400, 2000);
var interface = element.GetInterface(1);

Remarks

note

Note that the method caches the interface the first time it is retrieved, and the interface will not be updated if it changes while the script is running.

GetInterface(string)

Retrieves the specified DCF interface.

public virtual Interface GetInterface(string customName)

Parameters

customName string

The name of the interface.

Returns

Interface

The DCF interface or null if the specified interface was not found.

Examples

Element element = engine.FindElement(400, 2000);
var interface = element.GetInterface("MyInterface");

Remarks

note

Note that the method caches the interface the first time it is retrieved, and the interface will not be updated if it changes while the script is running.