Modifica

Condividi tramite


GenerateScriptTypeAttribute(Type) Constructor

Definition

Initializes a new instance of the GenerateScriptTypeAttribute class for the specified type.

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)

Parameters

type
Type

The type to include in the proxy class.

Exceptions

type is null.

Examples

The following example shows how to use GenerateScriptTypeAttribute to generate a proxy object for the specified type that uses a specific type identifier for the metadata marker.

Remarks

The ScriptTypeId property is an optional named parameter for this constructor.

Applies to