←Select platform

EndAdd Method

Summary

Ends adding a new cache item and commit the changes.

Syntax
C#
VB
C++
Java
public virtual void EndAdd( 
   bool commit, 
   string key, 
   CacheItemPolicy policy, 
   string regionName 
) 
Public Overridable Sub EndAdd( 
   ByVal commit As Boolean, 
   ByVal key As String, 
   ByVal policy As CacheItemPolicy, 
   ByVal regionName As String 
) 
public:  
   virtual void EndAdd( 
      bool commit, 
      String^ key, 
      CacheItemPolicy^ policy, 
      String^ regionName 
   ) 
public void endAdd(boolean commit, String key, CacheItemPolicy policy, String regionName) 

Parameters

commit

true to commit this item to the cache, false to discard it.

key

Unique item identifier.

policy

Expiration policy to use with this item.

regionName

Optional region (sub-directory) name.

Remarks

This method calls EndAddExternalResource<T> and will be removed from the next version of LEADTOOLS.

LEADTOOLS Document classes use this method to quickly add items. It speeds up access and updating the data if the value contain large amount of data such as an image file.

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Caching Assembly