SyncAction Delegate

Represents a method that is used to run a synchronous task.

Namespace: Microsoft.EssentialBusinessServer.Console.ObjectModel
Assembly: Microsoft.EssentialBusinessServer.Console.ObjectModel (in microsoft.essentialbusinessserver.console.objectmodel.dll)

public delegate Object SyncAction ()
/** @delegate */
public delegate Object SyncAction ()

Return Value

An implementation-defined object.

The following code example shows how to define a SyncUiTask that uses a delegate method to perform an action:

TaskCollection tasks = new TaskCollection();
SyncUiTask synctask = new SyncUiTask("Display Message", SyncUiMethod);
tasks.Add(synctask);

private static object SyncUiMethod()
{
    MessageBox.Show("This is a sync task");
    return null;
}

The object that is returned from this method is associated with the return value of a TaskCompletedEventArgs object.

A synchronous task is created by initializing a SyncUiTask object.


Development Platforms

Windows Server 2008 64-bit Edition, Windows Vista 64-bit Edition, Windows Essential Business Server 2008 Standard, Windows Essential Business Server 2008 Premium

Target Platforms

Windows Essential Business Server 2008 Standard, Windows Essential Business Server 2008 Premium

Community Additions

Show: