语言

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

要包含在代理类中的类型。

例外

type 是 null。

示例

以下示例演示如何为 GenerateScriptTypeAttribute 使用元数据标记的特定类型标识符的指定类型生成代理对象。

注解

该 ScriptTypeId 属性是此构造函数的可选命名参数。

适用于