ControlBuilderAttribute.BuilderType Property

 

Gets the Type of the control associated with the attribute. This property is read-only.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

public Type BuilderType { get; }

Property Value

Type: System.Type

The Type of the control associated with the attribute.

// Using the NowWhiteSpaceControlBuilder with a simple control.
// When created on a page this control will not allow white space
// to be converted into a literal control.     
[ControlBuilderAttribute(typeof(NoWhiteSpaceControlBuilder))]
[AspNetHostingPermission(SecurityAction.Demand, 
   Level=AspNetHostingPermissionLevel.Minimal)]
public sealed class MyNonWhiteSpaceControl : Control
{}

// A simple custom control to compare with MyNonWhiteSpaceControl.
[AspNetHostingPermission(SecurityAction.Demand, 
   Level=AspNetHostingPermissionLevel.Minimal)]
public sealed class WhiteSpaceControl : Control 
{}

.NET Framework
Available since 1.1
Return to top
Show: