←Select platform

SaveItem Method

Summary

Save the image data for an item.

Syntax

C#
VB
C++
protected abstract void SaveItem( 
   ImageViewerItem item, 
   object data 
) 
Protected MustOverride Sub SaveItem( 
   ByVal item As ImageViewerItem, 
   ByVal data As Object 
) 
protected:  
   virtual void SaveItem( 
      ImageViewerItem^ item, 
      Object^ data 
   ) abstract 

Parameters

item

Source item

data

The image object for this item.

Remarks

This method is called when an item is about to be deleted from the cache. This gives the derived class the opportunity 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.

Example

For an example, refer to ImageViewerVirtualizer.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls.WinForms Assembly