ConfigSavePropertyStatusEventArgs.ErrorCode
This is the type of error that occurred.
Version History
Introduced in MPX 2.0.
Type
ConfigSaveErrorCode (read only)
Visual Basic
Syntax
ReadOnly Property ErrorCode() As ConfigSaveErrorCode
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)
If e.ErrorCode = Mpx.ConfigSaveErrorCode.Internal Then
' Cancel the save operation
saver.Cancel()
System.Console.WriteLine("Canceled!")
End If
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)
{
if (e.ErrorCode == Mpx.ConfigSaveErrorCode.Internal)
{
// Cancel the save operation
saver.Cancel();
System.Console.Write("Canceled!\n");
}
}
|
See Also
ConfigSavePropertyErrorEventArgs
ConfigSaveErrorCode
|