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.

 

 

 

 

 

 

 

ResolveType Method (id)

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

Syntax

CSharp

public abstract Type ResolveType (
	string id
)

VisualBasic

Public MustOverride Function ResolveType ( _
	id As String _
) As Type

ManagedCPlusPlus

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

JSharp

public abstract Type ResolveType (
	String id
)

Parameters

id (String)

The name of the managed type.

Return Value

Return Value

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

Remarks

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

Notes For Inheritors

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

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