←Select platform

UpdatePolicy Method

Summary

Update the policy of an existing cache item.

Syntax
C#
C++
Java
public override void UpdatePolicy( 
   string key, 
   CacheItemPolicy policy, 
   string regionName 
) 
vb[VB Syntax] 
Public Overrides Sub UpdatePolicy( 
   ByVal _key_ As String, 
   ByVal _policy_ As CacheItemPolicy, 
   ByVal _regionName_ As String 
) 
public:  
   virtual void UpdatePolicy( 
      String^ key, 
      CacheItemPolicy^ policy, 
      String^ regionName 
   ) override 
public updatePolicy(String key, CacheItemPolicy policy, String regionName) 

Parameters

key

Unique item identifier.

policy

New expiration policy to use with this item.

regionName

Optional region (sub-directory) name.

Requirements

Target Platforms

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

Leadtools.Caching Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.