OnCollectionChanged Method of the ICollectionEvents Interface
This method is implemented on the client side. It is called by ABBYY FlexiCapture SDK for some of the methods of the collection objects. It delivers to the client information about adding, deleting and modifying of collection elements.
Visual Basic .NET
Sub OnCollectionChanged( _ ByVal Reloaded As Boolean, _ ByVal AddedItems As IntsCollection, _ ByVal DeletedItems As IntsCollection, _ ByVal ModifiedItems As IntsCollection _ )
HRESULT OnCollectionChanged( VARIANT_BOOL Reloaded, IIntsCollection* AddedItems, IIntsCollection* DeletedItems, IIntsCollection* ModifiedItems );
- [in] This parameter specifies whether the collection has been reloaded.
- [in] This parameter refers to the collection of identifiers of the elements which have been added.
- [in] This parameter contains the collection of identifiers of the elements which have been deleted.
- [in] This parameter contains the collection of identifiers of the elements which have been modified.
This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.
A client implementation of this method must assure that all exceptions thrown inside the method are caught and handled and no exceptions are propagated outside the method. Propagation of an exception outside the method may lead to unpredictable results (such as program termination).
Working with Connectable Objects