ChtmlTextWriter.AddRecognizedAttribute Method (String, String)

 

Adds an attribute to a cHTML element of the ChtmlTextWriter object.

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

Public Overridable Sub AddRecognizedAttribute (
	elementName As String,
	attributeName As String
)

Parameters

elementName
Type: System.String

The cHTML element to add the attribute to.

attributeName
Type: System.String

The attribute to add to elementName.

The AddRecognizedAttribute method adds an attribute to a cHTML element. The recognized attribute is stored in the recognized attributes Hashtable collection of the ChtmlTextWriter object that is referenced by the RecognizedAttributes property.

.NET Framework
Available since 2.0
Return to top
Show: