* Page.cs: Set the cache's duration.
[mono.git] / mcs / class / System.Web / System.Web.UI / TagPrefixAttribute.cs
1 //
2 // System.Web.UI.TagPrefixAttribute.cs
3 //
4 // Duncan Mak  (duncan@ximian.com)
5 //
6 // (C) Ximian, Inc.
7 //
8
9 using System;
10
11 namespace System.Web.UI {
12
13         [AttributeUsage (AttributeTargets.Assembly)]
14         public sealed class TagPrefixAttribute : Attribute
15         {
16                 string namespaceName;
17                 string tagPrefix;
18                 
19                 public TagPrefixAttribute (string namespaceName,
20                                            string tagPrefix)
21                 {
22                         if (namespaceName == null || tagPrefix == null)
23                                 throw new ArgumentNullException ();
24
25                         this.namespaceName = namespaceName;
26                         this.tagPrefix = tagPrefix;
27                 }
28
29                 public string NamespaceName {
30                         get { return namespaceName; }
31                 }
32
33                 public string TagPrefix {
34                         get { return tagPrefix; }
35                 }
36         }
37 }