| 123456789101112131415161718192021222324252627282930 |
- //
- // System.Web.UI.EmptyControlCollection.cs
- //
- // Duncan Mak ([email protected])
- //
- // (C) Ximian, Inc.
- //
- using System;
- namespace System.Web.UI {
- public class EmptyControlCollection : ControlCollection
- {
- public EmptyControlCollection (Control owner)
- : base (owner)
- {
- }
-
- public override void Add (Control child)
- {
- throw new NotSupportedException ("Control " + Owner.ID + " does not allow children");
- }
- public override void AddAt (int index, Control child)
- {
- throw new NotSupportedException ("Control " + Owner.ID + " does not allow children");
- }
- }
- }
|