Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IAttributeAccessor Interface

Defines methods used by ASP.NET server controls to provide programmatic access to any attribute declared in the opening tag of a server control.

Namespace:  System.Web.UI
Assembly:  System.Web (in System.Web.dll)
type IAttributeAccessor =  interface end

The IAttributeAccessor type exposes the following members.

  NameDescription
Public methodGetAttributeWhen implemented by a class, retrieves the specified attribute property from the server control.
Public methodSetAttributeWhen implemented by a class, designates an attribute and its value to assign to the ASP.NET server control.
Top

If you author a custom server control that inherits from the WebControl, HtmlControl, or ListItem class, the .NET Framework automatically provides programmatic access to attributes because each of these classes implement the IAttributeAccessor interface.

If you author a custom server control that does not inherit from one of these classes and plan to allow programmatic access to attributes that do not correspond with the control's strongly typed properties, be sure to implement the IAttributeAccessor interface.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.