SyncAction Generic Delegate
Represents a method that is used to run a synchronous task, which is associated to a business object that has been selected in the Administration Console.
Namespace: Microsoft.EssentialBusinessServer.Console.ObjectModel
Assembly: Microsoft.EssentialBusinessServer.Console.ObjectModel (in microsoft.essentialbusinessserver.console.objectmodel.dll)
Usage
Syntax
'Declaration
Public Delegate Function SyncAction(Of TBusinessObject) ( _
businessObj As TBusinessObject _
) As Object
public delegate Object SyncAction<TBusinessObject> (
TBusinessObject businessObj
)
generic<typename TBusinessObject>
public delegate Object^ SyncAction (
TBusinessObject businessObj
)
Parameters
- businessObj
A business object that encapsulates information and methods that relate to business data or business functionality.
Return Value
An implementation-defined object.
Example
The following code example shows how to define a SyncUiTask that uses a delegate method to update data from a business object:
SyncUiTask<BusinessObject> syncTask = null;
syncTask = new SyncUiTask<BusinessObject>("Update Property", UpdateProperty);
tasks.Add(syncTask);
private static object UpdateProperty(BusinessObject businessObj)
{
businessObj.OSVersion = "Windows Vista " +
DateTime.Now.TimeOfDay.ToString();
return businessObj;
}
Remarks
The object that is returned from this method is associated with the return value of a TaskCompletedEventArgs object.
A synchronous task that is associated to a business object is created by initializing a SyncUiTask object.
Platforms
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
See Also
Reference
Microsoft.EssentialBusinessServer.Console.ObjectModel Namespace