This documentation is archived and is not being maintained.

JavaScriptTypeResolver::ResolveType Method

When overridden in a derived class, returns the Type object that is associated with the specified type name.

Namespace:  System.Web.Script.Serialization
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public:
virtual Type^ ResolveType(
	String^ id
) abstract

Parameters

id
Type: System::String
The name of the managed type.

Return Value

Type: System::Type
The Type object that is associated with the specified type name.

When a type resolver is associated with a JavaScriptSerializer instance, the serializer uses the ResolveType method when it iterates through a JSON string to determine the specific managed type to which the JSON type should be converted.

Notes to Inheritors

Given a string value, the type resolver must return a Type object that represents the corresponding managed type.

.NET Framework

Supported in: 4, 3.5

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: