HtmlTextWriter.PopEndTag 方法

定义

从呈现的元素列表中移除最近保存的标记元素。Removes the most recently saved markup element from the list of rendered elements.

protected:
 System::String ^ PopEndTag();
protected string PopEndTag ();
member this.PopEndTag : unit -> string
Protected Function PopEndTag () As String

返回

一个 String,包含最新呈现的标记元素。A String containing the most recently rendered markup element.

异常

呈现的元素列表为空。The list of rendered elements is empty.

注解

元素通过RenderBeginTag方法添加到呈现的标记元素列表中。Elements are added to the list of rendered markup elements by the RenderBeginTag method. RenderEndTag方法通过PopEndTag调用方法从列表中删除标记元素。The RenderEndTag method removes markup elements from the list by calling the PopEndTag method.

适用于

另请参阅