Merge pull request #2832 from razzfazz/handle_eintr
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / Content.cs
1 //
2 // System.Web.UI.WebControls.Content.cs
3 //
4 // Authors:
5 //   Lluis Sanchez Gual (lluis@novell.com)
6 //
7 // (C) 2005-2010 Novell, Inc.
8 //
9
10 //
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
18 // 
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 // 
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 //
30
31 using System;
32 using System.ComponentModel;
33
34 namespace System.Web.UI.WebControls
35 {
36         [ToolboxItem (false)]
37         [DesignerAttribute ("System.Web.UI.Design.WebControls.ContentDesigner, " + Consts.AssemblySystem_Design, "System.ComponentModel.Design.IDesigner")]
38         [ControlBuilder(typeof(ContentBuilderInternal))]
39         public class Content: Control, INamingContainer, INonBindingContainer
40         {
41                 [ThemeableAttribute (false)]
42                 [DefaultValueAttribute ("")]
43                 [WebCategoryAttribute ("Behavior")]
44                 [IDReferencePropertyAttribute (typeof(ContentPlaceHolder))]
45                 public string ContentPlaceHolderID {
46                         get { return String.Empty; }
47                         set { throw new NotSupportedException (); }
48                 }
49
50                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
51                 [Browsable (false)]
52                 public new event EventHandler DataBinding {
53                         add { base.DataBinding += value; }
54                         remove { base.DataBinding -= value; }
55                 }
56
57                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
58                 [Browsable (false)]
59                 public new event EventHandler Disposed {
60                         add { base.Disposed += value; }
61                         remove { base.Disposed -= value; }
62                 }
63
64                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
65                 [Browsable (false)]
66                 public new event EventHandler Init {
67                         add { base.Init += value; }
68                         remove { base.Init -= value; }
69                 }
70
71                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
72                 [Browsable (false)]
73                 public new event EventHandler Load {
74                         add { base.Load += value; }
75                         remove { base.Load -= value; }
76                 }
77
78                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
79                 [Browsable (false)]
80                 public new event EventHandler PreRender {
81                         add { base.PreRender += value; }
82                         remove { base.PreRender -= value; }
83                 }
84
85                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
86                 [Browsable (false)]
87                 public new event EventHandler Unload {
88                         add { base.Unload += value; ; }
89                         remove { base.Unload -= value; }
90                 }
91         }
92 }
93