←Select platform

GetItemVirtualDirectoryUrl Method

Summary

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

Syntax
C#
VB
C++
Java
public override Uri GetItemVirtualDirectoryUrl( 
   string key, 
   string regionName 
) 
Public Overrides Function GetItemVirtualDirectoryUrl( 
   ByVal key As String, 
   ByVal regionName As String 
) As System.Uri 
public:  
   virtual System::Uri^ GetItemVirtualDirectoryUrl( 
      String^ key, 
      String^ regionName 
   ) override 
public URI getItemVirtualDirectoryUrl(String key, String 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 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Caching Assembly