次の方法で共有


WebControl コンストラクタ (String)

指定した HTML タグを使用して、WebControl クラスの新しいインスタンスを初期化します。

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

構文

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

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

パラメータ

  • tag
    HTML タグ。

解説

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

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

プロパティ

初期値

TagKey

Unknown 列挙値。

TagName

tag パラメータの値。

メモメモ :

このコンストラクタは直接には呼び出されません。通常は、直接呼び出される代わりに、派生クラスのコンストラクタによって呼び出され、TagKey プロパティと TagName プロパティを初期化します。

プラットフォーム

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

参照

関連項目

WebControl クラス
WebControl メンバ
System.Web.UI.WebControls 名前空間
HtmlTextWriterTag
TagKey
TagName

その他の技術情報

Web サーバー コントロール構文
ASP.NET カスタム サーバー コントロールの開発