GenerateScriptTypeAttribute(Type) Konstruktor

Definíció

Inicializálja az GenerateScriptTypeAttribute osztály új példányát a megadott típushoz.

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)

Paraméterek

type
Type

A proxyosztályba felvenni kívánt típus.

Kivételek

type az null.

Példák

Az alábbi példa bemutatja, hogyan hozhat GenerateScriptTypeAttribute létre proxyobjektumot a megadott típushoz, amely egy adott típusazonosítót használ a metaadat-jelölőhöz.

Megjegyzések

A ScriptTypeId tulajdonság a konstruktor opcionálisan elnevezett paramétere.

A következőre érvényes: