NonVisualControlAttribute Constructor ()

 

Initializes a new instance of the NonVisualControlAttribute class.

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

Public Sub New

A default instance of the NonVisualControlAttribute class is equivalent to the NonVisual field, or passing true to the NonVisualControlAttribute.NonVisualControlAttribute(Boolean) constructor.

The following code example demonstrates how you can apply the NonVisualControlAttribute attribute to a class. In this example, the default NonVisualControlAttribute attribute is applied to a data source control. This is equivalent to the NonVisual field.

<NonVisualControlAttribute()> _
Public Class CustomNonVisualControl
    Inherits Control

    ' Add an implementation of custom non-visual control.

End Class

.NET Framework
Available since 2.0
Return to top
Show: