DataBindingHandlerAttribute.HandlerTypeName Property

 

Gets the type name of the data-binding handler.

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

Public ReadOnly Property HandlerTypeName As String

Property Value

Type: System.String

The type name of the handler. If the type name is null, this property returns an empty string ("").

The following code example retrieves the HandlerTypeName property from an instance of the DataBindingHandlerAttribute class.

<DataBindingHandlerAttribute(GetType(System.Web.UI.Design.TextDataBindingHandler))>  _
Public Class SimpleWebControl
   Inherits WebControl
   ' Insert code for class members here
End Class 'SimpleWebControl

Class TestAttributes

   Public Shared Sub Main()
      Dim myAttributes As System.ComponentModel.AttributeCollection = _
         TypeDescriptor.GetAttributes(GetType(SimpleWebControl))

      Dim myDataBindingHandlerAttribute As DataBindingHandlerAttribute = _
         myAttributes(GetType(DataBindingHandlerAttribute))

      If Not (myDataBindingHandlerAttribute Is Nothing) Then
         Console.Write(("DataBindingHandlerAttribute's HandlerTypeName is : " + _
            myDataBindingHandlerAttribute.HandlerTypeName))
      End If
   End Sub 'Main
End Class 'TestAttributes

.NET Framework
Available since 1.1
Return to top
Show: