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.

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.

.NET Framework

Supported in: 3.5
Show: