.

ConfigSavePropertyStatusEventArgs.Message

The Message property describes the nature of the error in a readable fashion.

Version History

Introduced in MPX 2.0.

Type

String (read only)

Visual Basic

Syntax

ReadOnly Property Message() 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

ConfigSaveErrorCode ErrorCode { 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

 

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