Files
mono/mcs/class/System.Web/System.Web.UI/PartialCachingAttribute.cs
T
Gonzalo Paniagua Javier a2d15941df 2003-12-18 Gonzalo Paniagua Javier <[email protected]>
* LosFormatter.cs: new ctor for 1.1. The default ctor is public.
	* Page.cs: added ViewStateUserKey and made RegisterclientScriptFile
	internal.
	* PageParser.cs: the ctor is public.
	* PartialCachingAttribute.cs: added new ctor and Shared property.

svn path=/trunk/mcs/; revision=21290
2003-12-18 01:15:58 +00:00

73 lines
1.4 KiB
C#
Executable File

//
// System.Web.UI.PartialCachingAttribute.cs
//
// Duncan Mak ([email protected])
//
// (C) Ximian, Inc.
//
using System;
namespace System.Web.UI {
[AttributeUsage (AttributeTargets.Class)]
public sealed class PartialCachingAttribute : Attribute
{
int duration;
string varyByControls;
string varyByCustom;
string varyByParams;
#if NET_1_1
bool shared;
#endif
public PartialCachingAttribute (int duration)
{
this.duration = duration;
}
public PartialCachingAttribute (int duration, string varyByParams,
string varyByControls, string varyByCustom)
{
this.duration = duration;
this.varyByParams = varyByParams;
this.varyByControls = varyByControls;
this.varyByCustom = varyByCustom;
}
#if NET_1_1
public PartialCachingAttribute (int duration, string varyByParams, string varyByControls,
string varyByCustom, bool shared)
{
this.duration = duration;
this.varyByParams = varyByParams;
this.varyByControls = varyByControls;
this.varyByCustom = varyByCustom;
this.shared = shared;
}
#endif
public int Duration {
get { return duration; }
}
public string VaryByParams {
get { return varyByParams; }
}
public string VaryByControls {
get { return varyByControls; }
}
public string VaryByCustom {
get { return varyByCustom; }
}
#if NET_1_1
public bool Shared {
get { return shared; }
}
#endif
}
}