次の方法で共有


HtmlControl コンストラクタ (String)

タグを指定して、HtmlControl クラスの新しいインスタンスを初期化します。

名前空間: System.Web.UI.HtmlControls
アセンブリ: System.Web (system.web.dll 内)

構文

'宣言
Protected Sub New ( _
    tag As String _
)
'使用
Dim tag As String

Dim instance As New HtmlControl(tag)
protected HtmlControl (
    string tag
)
protected:
HtmlControl (
    String^ tag
)
protected HtmlControl (
    String tag
)
protected function HtmlControl (
    tag : String
)
適用できません。

パラメータ

  • tag
    コントロールのタグ名を指定する文字列。

解説

このコンストラクタを使用して、指定したタグで HtmlControl クラスの新しいインスタンスを作成し、初期化します。

メモメモ :

このクラスの新しいインスタンスは直接作成されません。このコンストラクタは他の HTML コントロール クラスのコンストラクタから呼び出され、クラスで定義されているプロパティを初期化します。

HtmlControl のインスタンスの初期プロパティ値を次の表に示します。

プロパティ

初期値

TagName

tag パラメータの値。

プラットフォーム

Windows 98,Windows Server 2000 SP4,Windows CE,Windows Millennium Edition,Windows Mobile for Pocket PC,Windows Mobile for Smartphone,Windows Server 2003,Windows XP Media Center Edition,Windows XP Professional x64 Edition,Windows XP SP2,Windows XP Starter Edition

Microsoft .NET Framework 3.0 は Windows Vista,Microsoft Windows XP SP2,および Windows Server 2003 SP1 でサポートされています。

バージョン情報

.NET Framework

サポート対象 : 3.0,2.0,1.1,1.0

参照

関連項目

HtmlControl クラス
HtmlControl メンバ
System.Web.UI.HtmlControls 名前空間