IUANode.Get<T>(browsePath)

Returns a C# object that matches the first child node of the node on which this method is invoked. The returned object name matches the argument of the specified type.
TIP:
In Visual Studio and Visual Studio Code, specifying the exact type (
<T>
) improves the intelligent code completion and makes it easier to identify errors while writing the code.
At runtime, it is evident if the node searched is of the requested type. If the searched node is not of the requested type, the API returns
null
.
T Get<T>(string
browsePath
)

Arguments

T
An
IUANode
C# class that corresponds to the class of the C# object to return.
browsePath
(string)
Can be either:
  • The
    BrowseName
    of the object
  • The path of the object in the information model, uniquely expressed as a sequence of
    BrowseName
    values separated by
    /

Returns

T
A C# object that matches the requested node.

Example

The following example shows a returned C# object that corresponds to the to the first
Motor1
child node of the node that contains the NetLogic:
var motor = Owner.Get<Motor>("Motor1"); var currentSpeed = motor.Speed;
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.