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
Property PropertyPath() As String
Sample Code
|
' This method handles PropertyError events that occur while
' saving the configuration of an object.
Public Sub OnSavePropertyError(ByVal saver As Mpx.ConfigSaver,
ByVal e As Mpx.ConfigSavePropertyErrorEventArgs)
Dim msg As String = "Error: "
msg += e.PropertyPath
msg += ": "
msg += e.Message
System.Console.WriteLine(msg)
End Sub
|
Sample Application
C#
Syntax
string PropertyPath { get; }
Sample Code
|
// This method handles PropertyError events that occur while saving
// the configuration of an object.
public void OnSavePropertyError(Mpx.ConfigSaver saver,
Mpx.ConfigSavePropertyErrorEventArgs e)
{
// Example output:
// ERROR: Controller.Axis[2]: Axis is not enabled
string msg = "ERROR: "
+ e.PropertyPath
+ ": "
+ e.Message
+ "\n";
System.Console.Write(msg);
}
|
See Also
ConfigSavePropertyErrorEventArgs
|