CreateController¶
-
void IBus.CreateController(string xml, SimulatedControllerProperties properties)¶
Creates a simulated sub-controller from an XML controller description provided as string. The created sub-controller is a child of the parent controller of this bus and is connected to this bus.
- Parameters
xml – String containing XML controller description.
properties – SimulatedControllerProperties containing properties of the controller.
- Throws
NullArgumentException– Null reference was passed.InvalidArgumentException– Empty serial number specified.InvalidFormatException– Invalid XML contents (see exception message for details).UnsupportedException– Bus is not part of a simulated top-controller.OutOfResourcesException– Maximum number of controllers reached (limited by simulator service platform hardware resources).CommunicationErrorException– Protocol error.ConnectionLostException– Connection to controller lost.RebootedException– Controller has been rebooted since this object reference was retrieved, invalidating this reference.IncompatibleException– Incompatible firmware version loaded.System.ObjectDisposedException– Object is disposed.