Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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.

[
  DataBindingHandlerAttribute(typeof(System.Web.UI.Design.TextDataBindingHandler))
]
public class SimpleWebControl:WebControl
{
   // Insert code for class members here
}

class TestAttributes
{
   public static void Main()
   {
      System.ComponentModel.AttributeCollection myAttributes = 
         TypeDescriptor.GetAttributes(typeof(SimpleWebControl));

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

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
Show:
© 2015 Microsoft