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. |