NonVisualControlAttribute Constructor (Boolean)

 

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.

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

new : 
        nonVisual:bool -> NonVisualControlAttribute

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.

Passing true to this constructor is equivalent to using the NonVisual field, and passing false is equivalent to using the Visual field.

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: