←Select platform

BeginAddExternalResource Method

Summary

Begins adding a new cache item.

Syntax
C#
C++/CLI
Java
Python
public override Uri BeginAddExternalResource( 
   string key, 
   string regionName, 
   bool readWrite 
) 
public:  
   virtual System::Uri^ BeginAddExternalResource( 
      String^ key, 
      String^ regionName, 
      bool readWrite 
   ) override 
public URI beginAddExternalResource(String key, String regionName, boolean readWrite) 
def BeginAddExternalResource(self,key,regionName,readWrite): 

Parameters

key

Unique item identifier.

regionName

Optional region name.

readWrite

true if the read and write access to the URI is requested; otherwise, false if only read access is requested.

Return Value

Returns URI to the path holding the data for the item.

Remarks

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

The LEADTOOLS Document 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.

After this method returns, EndAddExternalResource<T> must be called to either commit this item into the cache or discard it.

Requirements

Target Platforms

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

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