SimpleTypeResolver Class
Provides a type resolver for managed types.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
This type resolver can be used with the JavaScriptSerializer class to include in the serialized JavaScript Object Notation (JSON) string the assembly-qualified name of any managed type that requires custom type metadata.
The SimpleTypeResolver class enables you to serialize managed types as JSON while retaining the managed type definition for custom types.
To create an instance of the JavaScriptSerializer class that uses a type resolver, you must use the JavaScriptSerializer(JavaScriptTypeResolver) constructor.
- AspNetHostingPermission
for operating in a hosted environment. Demand value: LinkDemand. Associated enumeration: AspNetHostingPermissionLevel::Minimal
- AspNetHostingPermission
for operating in a hosted environment. Demand value: InheritanceDemand. Associated enumeration: AspNetHostingPermissionLevel::Minimal
System.Web.Script.Serialization::JavaScriptTypeResolver
System.Web.Script.Serialization::SimpleTypeResolver
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.