Show / Hide Table of Contents

Delegate ExecuteDelegate

Delegate method called when this action should be executed - in a Windows client context

Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.dll
Syntax
public delegate ArchiveRestrictionInfo ExecuteDelegate(RowInfo[] rowInfo);
Parameters
Type Name Description
RowInfo[] rowInfo

Information about selected row(s)

Returns
Type Description
ArchiveRestrictionInfo

The result is processed as follows:

If a null value is returned here, no action is taken by the archive control

If a non-null archive restriction is returned, then it is added to the other restriction currently in force, and the data provider is called. The result set is then processed depending on matching primary keys and row types of the result set with those already in the selected rows only of the archive:

Provider returnsAction taken in archive
PrimaryKey+RowType matchThe existing row is updated with the values from the provider
PrimaryKey+RowType mismatchA new row is added
Existing row not matched by new provider resultPreviously selected row is deleted from archive

This delegate should thus return an archive restriction that refetches the currently selected rows, as far as is relevant; and this result set will update/replace/extend the currently selected rows.

If there are no currently selected rows, then no rows can/will be deleted from the archive

Constructors

ExecuteDelegate(Object, IntPtr)

Declaration
public ExecuteDelegate(object object, IntPtr method)
Parameters
Type Name Description
Object object
IntPtr method

Methods

BeginInvoke(RowInfo[], AsyncCallback, Object)

Declaration
public virtual IAsyncResult BeginInvoke(RowInfo[] rowInfo, AsyncCallback callback, object object)
Parameters
Type Name Description
RowInfo[] rowInfo
AsyncCallback callback
Object object
Returns
Type Description
IAsyncResult

EndInvoke(IAsyncResult)

Declaration
public virtual ArchiveRestrictionInfo EndInvoke(IAsyncResult result)
Parameters
Type Name Description
IAsyncResult result
Returns
Type Description
ArchiveRestrictionInfo

Invoke(RowInfo[])

Declaration
public virtual ArchiveRestrictionInfo Invoke(RowInfo[] rowInfo)
Parameters
Type Name Description
RowInfo[] rowInfo
Returns
Type Description
ArchiveRestrictionInfo

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top