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 개체에 적용됩니다.

적용 대상

추가 정보