JavaScriptTypeResolver::ResolveType Method (String^)

 

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
Available since 3.5
Return to top
Show: