Welcome to mirror list, hosted at ThFree Co, Russian Federation.

PartialCachingAttribute.cs « System.Web.UI « System.Web « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: be490317e8b65a9241d3ad461f94d21ed6b83848 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// System.Web.UI.PartialCachingAttribute.cs
//
// Duncan Mak  (duncan@ximian.com)
//
// (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; }
		}
	}
}