UserControl.IAttributeAccessor.SetAttribute Method (String, String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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)

Private Sub SetAttribute (
	name As String,
	value As String
	Implements IAttributeAccessor.SetAttribute


Type: System.String

The name of the attribute to set.

Type: System.String

The value of the attribute to set.

Use the IAttributeAccessor.SetAttribute 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