←Select platform

GetPolicy Method

Summary

Gets the policy stored with the specified cache item.

Syntax
C#
VB
C++
public virtual CacheItemPolicy GetPolicy( 
   string key, 
   string regionName 
) 
Public Overridable Function GetPolicy( 
   ByVal key As String, 
   ByVal regionName As String 
) As CacheItemPolicy 
public:  
   virtual CacheItemPolicy^ GetPolicy( 
      String^ key, 
      String^ regionName 
   ) 

Parameters

key

Unique identifier of the cache item.

regionName

Optional name of a region in cache.

Return Value

The cache item policy stored for the specified item in the cache. If the value is not found, a new CacheItemPolicy object initialed with default values is returned.

Requirements

Target Platforms

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

Leadtools.Caching Assembly