GenerateScriptTypeAttribute(Type) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为指定类型初始化类的新实例 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 属性是此构造函数的可选命名参数。