Share via


IManagementUIService.StartProgress(String, MethodInvoker) Method

Definition

Starts the progress indicator.

public:
 System::Object ^ StartProgress(System::String ^ text, System::Windows::Forms::MethodInvoker ^ cancelMethod);
public object StartProgress (string text, System.Windows.Forms.MethodInvoker cancelMethod);
abstract member StartProgress : string * System.Windows.Forms.MethodInvoker -> obj
Public Function StartProgress (text As String, cancelMethod As MethodInvoker) As Object

Parameters

text
String

The message to display when the progress indicator starts.

cancelMethod
MethodInvoker

The MethodInvoker delegate that is called when the StartProgress(String, MethodInvoker) method is canceled.

Returns

An object that is used to stop the progress indicator.

Examples

The following example implements this method.

class MyUI_Srvc : IManagementUIService, IDisposable {

    private IDictionary _styles;
    private IManagementFrameHost _owner;
    private Stack<IWin32Window> _curWin;
    private ManagementUIColorTable _colourTbl;

    private object _currentProgressToken;
    private bool _rightToLeft; 

Remarks

The return value should be saved and used when the StopProgress method is called.

Applies to