ConfigSavePropertyStatusEventArgs.SkipProperty
Setting SkipProperty to TRUE causes the current property to not be saved.
(Default=FALSE)
Version History
Introduced in MPX 2.0.
Type
Boolean
Default
False
Visual Basic
Syntax
Property SkipProperty() As Boolean
Sample Code
|
' This method handles PropertyStatus events that occur while
' saving the configuration of an object.
Public Sub OnSavePropertyStatus(ByVal saver As Mpx.ConfigSaver,
ByVal e As Mpx.ConfigSavePropertyStatusEventArgs)
' Don't save CAN or CAN Node objects
If e.PropertyPath.StartsWith("Controller.Can") Then
System.Console.WriteLine(" skipped")
e.SkipProperty = True
End If
End Sub
|
Sample Application
C#
Syntax
bool SkipProperty { get; set; }
Sample Code
|
// This method handles PropertyStatus events that occur while loading
// configuration to object.
public void OnSavePropertyStatus(Mpx.ConfigSaver saver,
Mpx.ConfigSavePropertyStatusEventArgs e)
{
// Don't save CAN or CAN Node objects
if (e.PropertyPath.StartsWith("Controller.Can"))
{
string msg = e.PropertyPath
+ " skipped\n";
System.Console.Write(msg);
e.SkipProperty = true;
}
}
|
See Also
ConfigSavePropertyStatusEventArgs
|