.

ConfigSavePropertyStatusEventArgs.PercentageDone

The PercentageDone property determines what percentage of the operation has been completed.

Version History

Introduced in MPX 2.0.

Type

UInt32 (read only)

Visual Basic

Syntax

ReadOnly Property PercentageDone() As UInteger

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

int PercentageDone { get; }

Sample Code

 

// OnSavePropertyStatus handles PropertyStatus events that occur while
// loading an 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