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
要包含在 Proxy 類別中的型別。
例外狀況
type
為 null
。
範例
下列範例將示範如何使用 GenerateScriptTypeAttribute ,針對指定的型別(使用元資料標記的特定類型識別碼)產生 proxy 物件。
備註
ScriptTypeId此屬性是這個函式的選擇性具名引數。