IUANode.FindByType<T>()

Returns a C# object that corresponds to the first child node of the node children on which the method is invoked and 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 FindByType<T>();

Arguments

T
A IUANode C# class that corresponds to the C# object class to return.

Returns

T
A C# object that corresponds to the node found.

Example

The following example shows a returned C# object that corresponds to the first
Motor
node child of the project root node:
var motor = Project.Current.FindByType<Motor>();
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.