HtmlContainerControl Constructors
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.
Initializes a new instance of the HtmlContainerControl class.
Overloads
HtmlContainerControl() |
Initializes a new instance of the HtmlContainerControl class using default values. |
HtmlContainerControl(String) |
Initializes a new instance of the HtmlContainerControl class using the specified tag name. |
HtmlContainerControl()
Initializes a new instance of the HtmlContainerControl class using default values.
public:
HtmlContainerControl();
protected:
HtmlContainerControl();
public HtmlContainerControl ();
protected HtmlContainerControl ();
Public Sub New ()
Protected Sub New ()
Remarks
Use this constructor to create and initialize a new instance of the HtmlContainerControl class using default values.
Note
An instance of this class is not created directly. This constructor is called from the constructor of other HTML control classes to initialize properties defined in this class.
The following table shows initial property values for an instance of HtmlContainerControl.
Property | Initial Value |
---|---|
TagName | The "span" literal string. |
Applies to
HtmlContainerControl(String)
Initializes a new instance of the HtmlContainerControl class using the specified tag name.
public:
HtmlContainerControl(System::String ^ tag);
public HtmlContainerControl (string tag);
new System.Web.UI.HtmlControls.HtmlContainerControl : string -> System.Web.UI.HtmlControls.HtmlContainerControl
Public Sub New (tag As String)
Parameters
- tag
- String
A string that specifies the tag name of the control.
Remarks
Use this constructor to create and initialize a new instance of the HtmlContainerControl class using the specified tag.
Note
An instance of this class is not created directly. This constructor is called from the constructor of other HTML control classes to initialize properties defined in this class.
The following table shows initial property values for an instance of HtmlContainerControl.
Property | Initial Value |
---|---|
TagName | The value specified by the tag parameter. |
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應