CreateControllerFromFile¶
-
void IBus.CreateControllerFromFile(string filename, SimulatedControllerProperties properties)¶
Creates a simulated sub-controller from an XML controller description stored in file. The created sub-controller is a child of the parent controller of this bus and is connected to this bus.
- Parameters
filename – Name of file 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).AccessDeniedException
– Unable to open file for reading.ReadErrorException
– Error while reading from the specified file.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.