ControlBuilderAttribute.BuilderType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Property Value
The Type of the control associated with the attribute.
Examples
// 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
' A simple custom control to compare with MyNonWhiteSpaceControl.
<AspNetHostingPermission(SecurityAction.Demand, _
Level:=AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class WhiteSpaceControl
Inherits Control
End Class
Applies to
See also
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET