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

プロキシ クラスに含める型。

例外

typenullです。

次の例では、 を使用 GenerateScriptTypeAttribute して、メタデータ マーカーに特定の型識別子を使用する指定した型のプロキシ オブジェクトを生成する方法を示します。

注釈

プロパティは ScriptTypeId 、このコンストラクターの省略可能な名前付きパラメーターです。

適用対象