www.gibmonks.com

Main Page

  Previous Section Next Section

ConstructorNeedsTagAttribute

System.Web.UI (system.web.dll)sealed class

This attribute is used in the class declaration for a control. You add it, with the parameter set to True, to indicate that a control's constructor requires an HTML tag. This tag is used for the System.Web.UI.HtmlControls.HtmlTableCell and System.Web.UI.HtmlControls.HtmlGenericControl classes, which can represent different HTML elements. For example, a System.Web.UI.HtmlControls.HtmlTableCell could represent a <td> or <th> tag, depending on what tag is provided in the constructor.

public sealed class ConstructorNeedsTagAttribute : Attribute {
// Public Constructors
   public ConstructorNeedsTagAttribute( );
   public ConstructorNeedsTagAttribute(bool needsTag);
// Public Instance Properties
   public bool NeedsTag{get; }
}

Hierarchy

System.Object System.Attribute ConstructorNeedsTagAttribute

Valid On

Class

      Previous Section Next Section