←Select platform

EndAddExternalResource(bool,string,object,CacheItemPolicy,string) Method

Summary

Ends adding a new cache item and commit the changes.

Syntax
C#
C++/CLI
Python
public virtual void EndAddExternalResource( 
   bool commit, 
   string key, 
   object value, 
   CacheItemPolicy policy, 
   string regionName 
) 
public: virtual System.Void^  EndAddExternalResource(System.Boolean^  commit, System.String^  key,  
   System.Object^  __identifier(value), CacheItemPolicy^  policy, System.String^  regionName) 
def EndAddExternalResource(self,commit,key,value,policy,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 Document classes use this method to quickly add items. It speeds up access and updating the data if the value contains large amount of data such as an image file.

Requirements

Target Platforms

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

Leadtools.Caching Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.