다음을 통해 공유


GenerateScriptTypeAttribute(Type) 생성자

정의

지정된 형식에 대한 클래스의 GenerateScriptTypeAttribute 새 인스턴스를 초기화합니다.

public:
 GenerateScriptTypeAttribute(Type ^ type);
public GenerateScriptTypeAttribute(Type type);
new System.Web.Script.Services.GenerateScriptTypeAttribute : Type -> System.Web.Script.Services.GenerateScriptTypeAttribute
Public Sub New (type As Type)

매개 변수

type
Type

프록시 클래스에 포함할 형식입니다.

예외

typenull입니다.

예제

다음 예제에서는 메타데이터 표식에 특정 형식 식별자를 사용하는 지정된 형식에 대한 프록시 개체를 생성하는 방법을 GenerateScriptTypeAttribute 보여 주었습니다.

설명

ScriptTypeId 속성은 이 생성자에 대한 선택적 명명된 매개 변수입니다.

적용 대상