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 屬性是此建構子的可選命名參數。