Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Controls Assembly > Leadtools.Controls Namespace > ImageViewerVirtualizer Class : SaveItem Method |
protected abstract void SaveItem( ImageViewerItem item, object data )
'Declaration
Protected MustOverride Sub SaveItem( _ ByVal item As ImageViewerItem, _ ByVal data As Object _ )
This method is called when an item is about to be deleted from the cache. This gives the derived class the apportunity to serialize the data to disk or a database if needed.
data is the same object returned from LoadItem for this item.
You should encapsulate the code inside this method with a try/catch and handle the error correctly. This method will not automatically fire the ItemError event.
For an example, refer to ImageViewerVirtualizer.