NonVisualControlAttribute Constructor (Boolean)
.NET Framework (current version)
Initializes a new instance of the NonVisualControlAttribute class, using the specified Boolean value to determine whether the attribute represents a visual or non-visual control.
Assembly: System.Web (in System.Web.dll)
Parameters
- nonVisual
-
Type:
System.Boolean
true to initialize the NonVisualControlAttribute to represent a Web control that is not rendered to the client at run time; otherwise, false.
The following code example demonstrates how you can apply the NonVisualControlAttribute attribute to a class. In this example, a data source control is designated as a non-visual control by passing true to the attribute.
.NET Framework
Available since 2.0
Available since 2.0
Show: