Gets a URI that provides HTTP GET access to data for the specified item.
public override Uri GetItemVirtualDirectoryUrl(
string key,
string regionName
)
key
Unique item identifier.
regionName
Optional region (sub-directory) name.
The URI to the file holding the data for the specified item.
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.