HtmlTextWriter.PushEndTag(String) 方法

定義

在產生標記項目的結尾標記時,儲存指定的標記項目,方便以後使用。

protected:
 void PushEndTag(System::String ^ endTag);
protected void PushEndTag (string endTag);
member this.PushEndTag : string -> unit
Protected Sub PushEndTag (endTag As String)

參數

endTag
String

標記項目的結尾標記。

備註

當 方法呼叫 PushEndTag 方法時 RenderBeginTag ,專案會新增至轉譯的標記專案清單。 方法 RenderEndTag 會在呈現元素的結束標記之後,從清單中移除標記專案。

適用於

另請參閱