ApplyModel¶
-
void ITopController.ApplyModel(string xml, ISubController[] subControllers)¶
Replaces the specified sub-controllers with new instances based on the model contained in the XML controller description string.
- Parameters
xml – String containing the XML controller description that contains the model to apply to the specified sub-controllers.
subControllers – Collection of sub-controllers that the XML model should be applied on.
- Throws
NullArgumentException– Null reference was passed.InvalidFormatException– Invalid XML contents (see exception message for details).InvalidOperationException– Top-controller state is not “Config”.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.