.

ConfigLoadPropertyStatusEventArgs.SkipProperty

Setting SkipProperty to True causes the current property to not be loaded.

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 
' loading configuration to an object.
Public Sub OnLoadPropertyStatus(ByVal loader As Mpx.ConfigLoader, 
ByVal e As Mpx.ConfigLoadPropertyStatusEventArgs)
    Dim msg As String

    ' Don't load CAN or CAN Node objects
    If e.PropertyPath.StartsWith("Controller.Can") Then
        msg = "Skipped: "
        msg += e.PropertyPath

        System.Console.WriteLine(msg)
        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 an object.

public void OnLoadPropertyStatus(Mpx.ConfigLoader loader,
   Mpx.ConfigLoadPropertyStatusEventArgs e)
{
   // Don't load CAN or CAN Node objects
   if (e.PropertyPath.StartsWith("Controller.Can"))
   {
      string msg;

      msg = "Skipped: "
         + e.PropertyPath
         + "\n";

      System.Console.Write(msg);
      e.SkipProperty = true;
   }
}

See Also

ConfigLoadPropertyStatusEventArgs

 

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