Name
ControlBuilderAttribute
Synopsis
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(GetType(MyControlBuilder))>
.
Public NotInheritable Class ControlBuilderAttribute : Inherits Attribute ' Public Constructors Public Sub New(ByVal builderType As Type) ' Public Shared Fields public Shared ReadOnly Default As ControlBuilderAttribute =System.Web.UI.ControlBuilderAttribute ' Public Instance Properties Public ReadOnly Property BuilderType As Type ' Public Instance Methods Overrides Public Function Equals( ByVal obj As Object) As Boolean Overrides Public Function GetHashCode() As Integer Overrides Public Function IsDefaultAttribute() As Boolean End Class
Hierarchy
System.Object→System.Attribute→ ControlBuilderAttribute
Valid On
Class
Get ASP.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.