←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 override Uri GetItemVirtualDirectoryUrl( 
   string key, 
   string regionName 
) 
public:  
   virtual System::Uri^ GetItemVirtualDirectoryUrl( 
      String^ key, 
      String^ regionName 
   ) override 
public 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 contain 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 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.