Click or drag to resize

TransactedObject.ValidateModification Method

Verifies a modification to ensure that it is still valid after other transactions have potentially committed modifications to this object.

Namespace:  AGI.Foundation.Infrastructure.Threading
Assembly:  AGI.Foundation.Tracking (in AGI.Foundation.Tracking.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
protected abstract bool ValidateModification(
	Transaction transaction,
	Object modificationDetails
)

Parameters

transaction
Type: AGI.Foundation.Transaction
The validating transaction.
modificationDetails
Type: System.Object
The modification to validate. This is the object that was passed to AddModification(TransactedObject, Object).

Return Value

Type: Boolean
true if the modification is still valid; otherwise false.
Remarks
If this method returns false, the transaction will raise a TransactionConflictException.
See Also