IAttributeAccessor.SetAttribute Method

UserControl.IAttributeAccessor.SetAttribute Method (String, String)


This API supports the product infrastructure and is not intended to be used directly from your code.

Sets the value of the specified user control attribute.

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

void IAttributeAccessor.SetAttribute(
	string name,
	string value


Type: System.String

The name of the attribute to set.

Type: System.String

The value of the attribute to set.

Use the M:System.Web.UI.UserControl.System.Web.UI.IAttributeAccessor.SetAttribute(System.String,System.String) method to set the value of control attributes that are not exposed as properties on the control.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft