ControlBuilderAttribute.BuilderType-Eigenschaft
Ruft den Type des Steuerelements ab, das dem Attribut zugeordnet ist. Diese Eigenschaft ist schreibgeschützt.
Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
Syntax
'Declaration
Public ReadOnly Property BuilderType As Type
'Usage
Dim instance As ControlBuilderAttribute
Dim value As Type
value = instance.BuilderType
public Type BuilderType { get; }
public:
property Type^ BuilderType {
Type^ get ();
}
/** @property */
public Type get_BuilderType ()
public function get BuilderType () : Type
Eigenschaftenwert
Der Type des Steuerelements, das dem Attribut zugeordnet ist.
Beispiel
' 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
// 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.
/** @attribute ControlBuilderAttribute(NoWhiteSpaceControlBuilder.class)
*/
public class MyNonWhiteSpaceControl extends Control
{
} //MyNonWhiteSpaceControl
// A simple custom control to compare with MyNonWhiteSpaceControl.
public class WhiteSpaceControl extends Control
{
} //WhiteSpaceControl
Plattformen
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
ControlBuilderAttribute-Klasse
ControlBuilderAttribute-Member
System.Web.UI-Namespace
ControlBuilder-Klasse