ControlBuilderAttribute

ControlBuilderAttribute

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

This attribute specifies the control builder that a custom control should use. If you want your control to use the standard control builder, you do not need to use this attribute. If you have created a custom ControlBuilder class, you can instruct ASP.NET to use it to create a control by adding this attribute to the control's class declaration, as in [ControlBuilder(typeOf(MyControlBuilder))].

public sealed class ControlBuilderAttribute : Attribute { // Public Constructors    public ControlBuilderAttribute(Type builderType); // Public Static Fields    public static readonly ControlBuilderAttribute Default; // =System.Web.UI.ControlBuilderAttribute // Public Instance Properties    public Type BuilderType{get; } // Public Instance Methods    public override bool Equals(object obj);  // overrides Attribute    public override int GetHashCode( );               // overrides Attribute    public override bool IsDefaultAttribute( );       // overrides Attribute }

Hierarchy

System.Object System.Attribute ControlBuilderAttribute

Valid On

Class



ASP. NET in a Nutshell
ASP.NET in a Nutshell, Second Edition
ISBN: 0596005202
EAN: 2147483647
Year: 2003
Pages: 873

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net