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>(stringbrowsePath)
Arguments
- T
- AnIUANodeC# class that corresponds to the class of the C# object to return.
- browsePath(string)
- Can be either:
- TheBrowseNameof the object
- The path of the object in the information model, uniquely expressed as a sequence ofBrowseNamevalues 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