EndAddExternalResource<T> Method

Summary

Ends adding a new cache item and commit the changes.

Syntax
C#
VB
C++
public override void EndAddExternalResource<T>( 
   bool commit, 
   string key, 
   T value, 
   CacheItemPolicy policy, 
   string regionName 
) 
Public Overrides Sub EndAddExternalResource(Of T)( 
   ByVal commit As Boolean, 
   ByVal key As String, 
   ByVal value As T, 
   ByVal policy As CacheItemPolicy, 
   ByVal regionName As String 
) 
public:  
   generic<typename T> 
   virtual void EndAddExternalResource( 
      bool commit, 
      String^ key, 
      T value, 
      CacheItemPolicy^ policy, 
      String^ regionName 
   ) override 

Parameters

commit

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

key

Unique item identifier.

value

Data for the cache item.

policy

Expiration policy to use with this item.

regionName

Optional region name.

Remarks

Cache consumers should call this method only if DefaultCacheCapabilities.ExternalResources is supported by this cache (by checking the DefaultCacheCapabilities property.

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