Intersoft WebGrid Documentation
SetCacheControl Method
See Also  Send Feedback
ISNet.WebUI.WebGrid Namespace > WebGrid Class : SetCacheControl Method






duration
The duration of the cache.
priority
Overrides the default data cache configuration.

Syntax

Visual Basic (Declaration) 
Public Sub SetCacheControl( _
   ByVal duration As TimeSpan, _
   ByVal priority As CacheItemPriority _
) 
Visual Basic (Usage)Copy Code
Dim instance As WebGrid
Dim duration As TimeSpan
Dim priority As CacheItemPriority
 
instance.SetCacheControl(duration, priority)
C# 
public void SetCacheControl( 
   TimeSpan duration,
   CacheItemPriority priority
)
Delphi 
public procedure SetCacheControl( 
    duration: TimeSpan;
    priority: CacheItemPriority
); 
JScript 
public function SetCacheControl( 
   duration : TimeSpan,
   priority : CacheItemPriority
);
Managed Extensions for C++ 
public: void SetCacheControl( 
   TimeSpan duration,
   CacheItemPriority priority
) 
C++/CLI 
public:
void SetCacheControl( 
   TimeSpan duration,
   CacheItemPriority priority
) 

Parameters

duration
The duration of the cache.
priority

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.