System.Web.UI.WebControls.Label.AddParsedSubObject Method

Notifies the control that an element was parsed and adds the element to the System.Web.UI.WebControls.Label control.

Syntax

protected override void AddParsedSubObject (object obj)

Parameters

obj
An object that represents the parsed element.

Remarks

The Label.AddParsedSubObject(object) method is used primarily by control developers when deriving a custom control from the System.Web.UI.WebControls.Label class.

If the input object is a System.Web.UI.LiteralControl, and the System.Web.UI.WebControls.Label control has no child controls, the input object is used to set the Label.Text property of the System.Web.UI.WebControls.Label control. Otherwise, the System.Web.UI.Control.AddParsedSubObject(object) method of the base System.Web.UI.Control class is called and the specified object is added to the System.Web.UI.Control.Controls collection.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0