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

要包含在 Proxy 類別中的型別。

例外狀況

typenull

範例

下列範例將示範如何使用 GenerateScriptTypeAttribute ,針對指定的型別(使用元資料標記的特定類型識別碼)產生 proxy 物件。

備註

ScriptTypeId此屬性是這個函式的選擇性具名引數。

適用於