←Select platform

GetItemVirtualDirectoryUrl Method

Summary

Gets a URI that provides HTTP GET access to data for the specified item.

Syntax
C#
C++/CLI
Java
Python
public abstract Uri GetItemVirtualDirectoryUrl( 
   string key, 
   string regionName 
) 
public:  
   virtual System::Uri^ GetItemVirtualDirectoryUrl( 
      String^ key, 
      String^ regionName 
   ) abstract 
public abstract URI getItemVirtualDirectoryUrl(String key, String regionName) 
def GetItemVirtualDirectoryUrl(self,key,regionName): 

Parameters

key

Unique item identifier.

regionName

Optional region (sub-directory) name.

Return Value

The URI to the file holding the data for the specified item.

Remarks

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

GetItemVirtualDirectoryUrl returns a URI to any item currently stored in the cache. Obtaining a URI to a cache item can be useful in a Web application if the client code is JavaScript for example.

LEADTOOLS Document Web Service classes use this method to quickly access the data of an item to speed up access and updating the data if the value contains large amount of data such as an image file. If the cache implementation does not support virtual directory access, then the web service gets the whole item using a regular "get" operation and then streams it back to the client.

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.