HtmlTextWriter.RegisterTag(String, HtmlTextWriterTag) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers markup tags, whether literals or dynamically generated, from the source file so that they can be properly rendered to the requesting client.
protected:
static void RegisterTag(System::String ^ name, System::Web::UI::HtmlTextWriterTag key);
protected static void RegisterTag (string name, System.Web.UI.HtmlTextWriterTag key);
static member RegisterTag : string * System.Web.UI.HtmlTextWriterTag -> unit
Protected Shared Sub RegisterTag (name As String, key As HtmlTextWriterTag)
Parameters
- name
- String
A string that contains the HTML tag.
An HtmlTextWriterTag that specifies which element to render.
Remarks
The predefined markup tags of the HTML language are registered by calls to the RegisterTag method when the first HtmlTextWriter object is created. Dynamic markup tags can be registered by using the RegisterTag method at other times.
The registration table used by the RegisterTag method is static
, so registration of tags applies to all HtmlTextWriter objects on the host computer.
Applies to
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈