DataBindingHandlerAttribute.HandlerTypeName Property


Gets the type name of the data-binding handler.

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

public string HandlerTypeName { get; }

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.

public class SimpleWebControl:WebControl
   // Insert code for class members here

class TestAttributes
   public static void Main()
      System.ComponentModel.AttributeCollection myAttributes = 

      DataBindingHandlerAttribute myDataBindingHandlerAttribute = 
         myAttributes[typeof(DataBindingHandlerAttribute)] as DataBindingHandlerAttribute;

      if(myDataBindingHandlerAttribute != null)
         Console.Write("DataBindingHandlerAttribute's HandlerTypeName is : " + 

.NET Framework
Available since 1.1
Return to top