This documentation is archived and is not being maintained.
IAttributeAccessor.SetAttribute Method
.NET Framework 1.1
When implemented by a class, designates an attribute and its value to assign to the ASP.NET server control.
[Visual Basic] Sub SetAttribute( _ ByVal key As String, _ ByVal value As String _ ) [C#] void SetAttribute( string key, string value ); [C++] void SetAttribute( String* key, String* value ); [JScript] function SetAttribute( key : String, value : String );
Parameters
- key
- The name of the attribute to be set.
- value
- The value assigned to the attribute.
Example
The following example demonstrates a possible implementation of the SetAttribute method.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
IAttributeAccessor Interface | IAttributeAccessor Members | System.Web.UI Namespace
Show: