ControlBuilderAttribute.BuilderType ControlBuilderAttribute.BuilderType ControlBuilderAttribute.BuilderType ControlBuilderAttribute.BuilderType Property

Определение

Возвращает Type элемента управления, связанного с атрибутом.Gets the Type of the control associated with the attribute. Это свойство доступно только для чтения.This property is read-only.

public:
 property Type ^ BuilderType { Type ^ get(); };
public Type BuilderType { get; }
member this.BuilderType : Type
Public ReadOnly Property BuilderType As Type

Значение свойства

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 
{}
' 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(GetType(NoWhiteSpaceControlBuilder))>  _
<AspNetHostingPermission(SecurityAction.Demand, _
  Level:=AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class MyNonWhiteSpaceControl
  Inherits Control
End Class 'MyNonWhiteSpaceControl

' A simple custom control to compare with MyNonWhiteSpaceControl.
<AspNetHostingPermission(SecurityAction.Demand, _
  Level:=AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class WhiteSpaceControl
  Inherits Control
End Class 'WhiteSpaceControl 

Применяется к

Дополнительно