MethodInvoker Delegate

This Package | All Packages

Invokes the handler method for the event that has occurred.

package com.ms.wfc.app

public multicast delegate
void MethodInvoker( );

Remarks

Use the MethodInvoker delegate to invoke a method with a void parameter list. This delegate is typically used in a call to a control's invoke method or when you need a simple delegate. The MethodInvoker delegate is similar to Java's Runnable method, except that the invoked method can have any name and can be declared as private.

The following is an example of using a MethodInvoker delegate to start a new thread in an application:

private void threadRoutine(){
    //Thread code goes here
}

private void startThreadRoutine(){
    Application.createThread(new MethodInvoker(this.threadRoutine));
}

See Also Application.createThread