Delegate ExecuteDelegate
Delegate method called when this action should be executed - in a Windows client context
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 returns | Action taken in archive |
---|
PrimaryKey+RowType match | The existing row is updated with the values from the provider | PrimaryKey+RowType mismatch | A new row is added | Existing row not matched by new provider result | Previously 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)
Delegate method called when this action should be executed - in a Windows client context
Declaration
public ExecuteDelegate(object @object, IntPtr method)
Parameters
Methods
BeginInvoke(RowInfo[], AsyncCallback, object)
Delegate method called when this action should be executed - in a Windows client context
Declaration
public virtual IAsyncResult BeginInvoke(RowInfo[] rowInfo, AsyncCallback callback, object @object)
Parameters
Returns
EndInvoke(IAsyncResult)
Delegate method called when this action should be executed - in a Windows client context
Declaration
public virtual ArchiveRestrictionInfo EndInvoke(IAsyncResult result)
Parameters
Returns
Invoke(RowInfo[])
Delegate method called when this action should be executed - in a Windows client context
Declaration
public virtual ArchiveRestrictionInfo Invoke(RowInfo[] rowInfo)
Parameters
Type |
Name |
Description |
RowInfo[] |
rowInfo |
|
Returns
Extension Methods