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 태그 언어의 미리 정의된 특성은 첫 번째 RegisterAttribute 개체를 HtmlTextWriter 만들 때 메서드를 호출하여 등록됩니다. 동적 특성은 다른 시간에 메서드를 RegisterAttribute 사용하여 등록할 수 있습니다.

메서드에서 RegisterAttribute 사용하는 등록 테이블은 특성 등록이 static호스트 컴퓨터의 모든 HtmlTextWriter 개체에 적용됩니다.

적용 대상

추가 정보