ScriptComponentDescriptor 클래스

정의

서버 구성 요소를 클라이언트 스크립트로 변환하기 위한 래퍼를 제공합니다.

public ref class ScriptComponentDescriptor : System::Web::UI::ScriptDescriptor
public class ScriptComponentDescriptor : System.Web.UI.ScriptDescriptor
type ScriptComponentDescriptor = class
    inherit ScriptDescriptor
Public Class ScriptComponentDescriptor
Inherits ScriptDescriptor
상속
ScriptComponentDescriptor
파생

설명

이 클래스는 내부 사전을 사용하여 구성 요소, 요소, 속성 및 이벤트에 대한 참조를 저장합니다. 이 사전을 채하려면 , AddComponentProperty, AddElementPropertyAddProperty 메서드를 AddEvent사용합니다. 완료되면 메서드를 GetScript 호출하여 클라이언트 스크립트를 생성합니다.

생성자

Name Description
ScriptComponentDescriptor(String)

클래스의 인스턴스를 초기화합니다 ScriptComponentDescriptor .

속성

Name Description
ClientID

파생 클래스에서 재정의되는 경우 클라이언트 구성 요소의 식별자를 가져옵니다.

ID

현재 ScriptComponentDescriptor 인스턴스의 ID를 가져오거나 설정합니다.

Type

대상 클라이언트 구성 요소의 형식을 가져오거나 설정합니다.

메서드

Name Description
AddComponentProperty(String, String)

지정된 속성을 추가하고 해당 속성을 지정된 요소와 연결합니다.

AddElementProperty(String, String)

지정된 속성을 추가하고 해당 속성을 지정된 구성 요소와 연결합니다.

AddEvent(String, String)

지정된 이벤트 및 처리기를 추가합니다.

AddProperty(String, Object)

지정된 속성과 값을 추가합니다.

AddScriptProperty(String, String)

지정된 속성을 추가하고 지정된 스크립트와 속성을 연결합니다.

Equals(Object)

지정된 개체가 현재 개체와 같은지 여부를 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 사용됩니다.

(다음에서 상속됨 Object)
GetScript()

페이지에서 대상 컨트롤을 구현하는 클라이언트 스크립트를 가져옵니다.

GetType()

현재 인스턴스의 Type 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상