GetByDefaultName<T>¶
-
T INamed.GetByDefaultName<T>(string name)¶
Gets the child with the specified type and default name.
- Template Parameters
T – The type of the child.
- Parameters
name – Default name of the child.
- Returns
T – Child with the type and specified default name.
- Throws
InvalidArgumentException– Child with the type and specified default name 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).