GetByPath<T>¶
-
T INamed.GetByPath<T>(string path)¶
Gets the child with the specified type and relative path.
- Template Parameters
T – The type of the child.
- Parameters
path – Relative path to the child.
- Returns
T – Child with the type and specified relative path.
- Throws
InvalidArgumentException– Child with the type and specified relative path does not exist.UnsupportedException– Function not supported (e.g. for system).CommunicationErrorException– Protocol error.ConnectionLostException– Connection to controller lost.RebootedException– Controller has been rebooted since this object reference was retrieved, invalidating this reference.System.ObjectDisposedException– Object is disposed (only applicable if entity is disposable).