ConfigLoader Object | 
           
                   
           | 
        |
  | 
          A ConfigLoader object provides methods to load the configuration of an MPX object. Helpful Links  
  | 
        |
| ConfigLoader | 
          
Visual Basic
Syntax
Class ConfigLoader
Sample Code
' Load controller configuration. ' Handle PropertyError events in order to display errors and warnings. ' Handle PropertyStatus events in order to display progress. Public Sub LoadController() Dim controller As Mpx.Controller = New Mpx.Controller(0) Dim loader As Mpx.ConfigLoader = New Mpx.ConfigLoader() ' Have the OnLoadPropertyError method handle PropertyError events AddHandler loader.PropertyErrorEvent AddressOf OnLoadPropertyError ' Have the OnLoadPropertyStatus method handle PropertyStatus events AddHandler loader.PropertyStatusEvent AddressOf OnLoadPropertyStatus loader.LoadFromFile(controller, "controllerConfig.xml") End Sub  | 
            
      Sample Application
C#
Syntax
class ConfigLoader
Sample Code
// Load controller configuration.     // Have the OnLoadPropertyError method handle PropertyError events     // Have the OnLoadPropertyStatus method handle PropertyStatus     loader.LoadFromFile(controller, "controllerConfig.xml");  | 
            
See Also
Enumerations
          ConfigLoadErrorCode
          ConfigLoadPropertyErrorEventArgs
          ConfigLoadPropertyStatusEventArgs
      
