View Single Post
  #5 (permalink)  
Old 08-31-2007, 11:59 PM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Wink Re: WebServices in DotNet

CacheDuration attribute in Web Service

This attribute specifies the length of time in seconds that the method should cache the results.

For example,

Code:
[WebMethod(CacheDuration=30)] //Here 30 is seconds
public int add(int a, int b)
{
return a + b;
}
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Reply With Quote