mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
* ConstructorNeedsTagAttribute.cs: * ControlBuilderAttribute.cs: * ImageClickEventArgs.cs: * ParseChildrenAttribute.cs: * PartialCachingAttribute.cs: * PersistChildrenAttribute.cs: * PersistenceModeAttribute.cs: * TemplateContainerAttribute.cs: Added to CVS. * PersistanceMode.cs: Removed, fixed typo. * PersistenceMode.cs: Replacing above. * StateBag.cs (this): Fixed indexer, it takes a string as the index, not an object. svn path=/trunk/mcs/; revision=4498
52 lines
974 B
C#
Executable File
52 lines
974 B
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;
|
|
|
|
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;
|
|
}
|
|
|
|
public int Duration {
|
|
get { return duration; }
|
|
}
|
|
|
|
public string VaryByParams {
|
|
get { return varyByParams; }
|
|
}
|
|
|
|
public string VaryByControls {
|
|
get { return varyByControls; }
|
|
}
|
|
|
|
public string VaryByCustom {
|
|
get { return varyByCustom; }
|
|
}
|
|
}
|
|
}
|