.

ConfigLoader.PropertyStatusEvent

This event is raised immediately prior to loading a property.

The user can provide a handler to this event in order to report progress or to exclude certain configuration elements from being loaded.

The ConfigLoadPropertyStatusEventArgs class provides access to the event data. The event data includes the progress percentage, as well as other pertinant information. It also provides a means of not loading particular properties or entire objects.

Version History

Introduced in MPX 2.0.

Type

event ConfigLoader.PropertyStatusEventHandler

Default

Null

Visual Basic

Syntax

Event PropertyErrorEvent(ByVal sender As Mpx.ConfigLoader,
       ByVal args As Mpx.ConfigLoadPropertyErrorEventArgs)

Sample Code

 
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
loader.LoadFromFile(controller,  "controllerConfig.xml")


Sample Application

 

C#

Syntax

event PropertyStatusEventHandler PropertyStatusEvent

Sample Code

 

Mpx.Controller controller = new Mpx.Controller(0);
Mpx.ConfigLoader loader = new Mpx.ConfigLoader();

// Have the OnLoadPropertyError method handle PropertyError events
loader.PropertyErrorEvent += OnLoadPropertyError;

// Have the OnLoadPropertyStatus method handle PropertyStatus
// events.

loader.PropertyStatusEvent += OnLoadPropertyStatus;

loader.LoadFromFile(controller, "controllerConfig.xml");

See Also

ConfigLoader
PropertyErrorEventHandler
ConfigLoadPropertyStatusEventArgs

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering