HtmlTextWriter.RegisterAttribute(String, HtmlTextWriterAttribute) メソッド

定義

リテラルの、または動的に生成されたマークアップ属性をソース ファイルから登録して、これらの属性を要求側のクライアントに適切にレンダリングできるようにします。

protected:
 static void RegisterAttribute(System::String ^ name, System::Web::UI::HtmlTextWriterAttribute key);
protected static void RegisterAttribute (string name, System.Web.UI.HtmlTextWriterAttribute key);
static member RegisterAttribute : string * System.Web.UI.HtmlTextWriterAttribute -> unit
Protected Shared Sub RegisterAttribute (name As String, key As HtmlTextWriterAttribute)

パラメーター

name
String

登録するマークアップ属性の名前を格納している文字列。

key
HtmlTextWriterAttribute

属性名に対応する HtmlTextWriterAttribute

注釈

HTML マークアップ言語の定義済みの属性は、最初HtmlTextWriterのオブジェクトの作成時に メソッドのRegisterAttribute呼び出しによって登録されます。 動的属性は、 メソッドを使用 RegisterAttribute して登録することもできます。

メソッドで RegisterAttribute 使用される登録テーブルは であるため、属性の登録は staticホスト コンピューター上のすべての HtmlTextWriter オブジェクトに適用されます。

適用対象

こちらもご覧ください