←Select platform

GetPolicy Method

Summary

Gets the policy stored with the specified cache item.

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

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 initialized with default values is returned.

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