Editar

Compartilhar via


ChtmlTextWriter.OnTagRender(String, HtmlTextWriterTag) Method

Definition

Determines whether the specified cHTML markup element is rendered to the requesting page.

protected:
 override bool OnTagRender(System::String ^ name, System::Web::UI::HtmlTextWriterTag key);
protected override bool OnTagRender (string name, System.Web.UI.HtmlTextWriterTag key);
override this.OnTagRender : string * System.Web.UI.HtmlTextWriterTag -> bool
Protected Overrides Function OnTagRender (name As String, key As HtmlTextWriterTag) As Boolean

Parameters

name
String

A string containing the name of the cHTML element to render.

key
HtmlTextWriterTag

The HtmlTextWriterTag associated with name.

Returns

true if the specified cHTML markup element can be rendered; otherwise, false.

Remarks

If the cHTML element is a span element, the OnTagRender method returns false. For all other tags, it returns true.

Applies to

See also