.

ConfigSavePropertyStatusEventArgs.PropertyPath

Gets the period-delineated path to the property that caused the error. For example:

“Controller.Axis[3].Capture[1].SourceEnable[Home]”

Version History

Introduced in MPX 2.0.

Type

String (read only)

Visual Basic

Syntax

ReadOnly Property PropertyPath() As String

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)
    Dim msg As String

    ' Print the current property and the percentage done
    ' Example output:
    ' 25%: Controller.Axis[2].MotorType
    '     skipped
    msg = e.PercentageDone.ToString()
    msg += "%: "
    msg += e.PropertyPath
    System.Console.WriteLine(msg)
End Sub


Sample Application

 

C#

Syntax

string PropertyPath { get; }

Sample Code

 

// This method handles PropertyStatus events that occur while loading
// configuration to object.

public void OnSavePropertyStatus(Mpx.ConfigSaver saver,
   Mpx.ConfigSavePropertyStatusEventArgs e)
{
   string msg;

   // Print the current property and the percentage done
   // Example output:
   // 25%: Controller.Axis[2].AmpDisableAction
   // skipped

   msg = e.PercentageDone
      + "%: "
      + e.PropertyPath
      + "\n";
   System.Console.Write(msg);
}

See Also

ConfigSavePropertyStatusEventArgs

 

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