Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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)

public:
NonVisualControlAttribute(
	bool nonVisual
)

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:
© 2017 Microsoft