←Select platform

EndAddExternalResource(Boolean,String,Object,CacheItemPolicy,String) Method

Summary

Ends adding a new cache item and commit the changes.

Syntax

C#
VB
C++
public virtual System.Void EndAddExternalResource(System.Boolean commit, System.String key, System.Object value, CacheItemPolicy policy, System.String regionName)
Public Overridable Function EndAddExternalResource(ByVal commit As System.Boolean, ByVal key As System.String, ByVal value As System.Object, ByVal policy As CacheItemPolicy, ByVal regionName As System.String) As System.Void
public: virtual System.Void^  EndAddExternalResource(System.Boolean^  commit, System.String^  key,  
   System.Object^  identifier(value), CacheItemPolicy^  policy, System.String^  regionName) 

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 Documents classes uses 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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Caching Assembly
Click or drag to resize