mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* 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
73 lines
1.4 KiB
C#
Executable File
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
|
|
}
|
|
}
|