.

ConfigSaver.IncludeChildren

Set this member to True to save all sub-object configuration data. Set it to False to not save sub-object configuration. Only the object's own properties will be saved.

Version History

Introduced in MPX 2.0.

Type

Boolean

Default

True

Visual Basic

Syntax

Property IncludeChildren() As Boolean

Sample Code

 
Dim controller As Mpx.Controller = New Mpx.Controller(0)
Dim saver As Mpx.ConfigSaver = New Mpx.ConfigSaver()

' Don't save child objects
saver.IncludeChildren = False

saver.SaveToFile(controller, "controllerOnlyConfig.xml")


Sample Application

 

C#

Syntax

bool IncludeChildren { get; set; }

Sample Code

 

Mpx.Controller controller = new Mpx.Controller(0);
Mpx.ConfigSaver saver = new Mpx.ConfigSaver();

// Don't save child objects
saver.IncludeChildren = false;

saver.SaveToFile(controller, "controllerOnlyConfig.xml");

See Also

ConfigSaver

 

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