ApplyModelFromFile¶
-
void ISubController.ApplyModelFromFile(string filename)¶
Replaces this sub-controller with a new instance based on the model contained in the XML controller description file.
- Parameters
filename – String containing the path to a file containing the XML controller description to apply on this sub-controller.
- Throws
NullArgumentException
– Null reference was passed.InvalidFormatException
– Invalid XML contents (see exception message for details).InvalidOperationException
– Top-controller state is not “Config”.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.
- Remarks
Equivalent to: ((ITopController)(subController.Parent)).ApplyModelFromFile(filename,new[]{subController});