Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

ScriptTypeId Property

Gets or sets the type identifier for the type metadata marker.

Syntax

CSharp

public string ScriptTypeId { get; set; }

VisualBasic

Public Property ScriptTypeId As String

ManagedCPlusPlus

public:
String^ ScriptTypeId {
	String^ get ();
	void set (String^ value);
}

JSharp

/** @property */
/** @property */

Value

Return Value

The type identifier for the type metadata marker on the serialized JavaScript Object Notation (JSON) string. The default value is the assembly-qualified name of the type.

Remarks

This is an optional property. If specified, the value of ScriptTypeId will be used for the type metadata marker ("__type") on the serialized JSON string instead of the assembly-qualified name of the type. During deserialization, the type resolver that is associated with the JavaScriptSerializer object will then use the type metadata marker value to map back to the appropriate managed type.

Assembly: System.Web.Extensions (Module: System.Web.Extensions)