JavaScriptTypeResolver.ResolveType(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, returns the Type object that is associated with the specified type name.
public:
abstract Type ^ ResolveType(System::String ^ id);
public abstract Type ResolveType (string id);
abstract member ResolveType : string -> Type
Public MustOverride Function ResolveType (id As String) As Type
Parameters
- id
- String
The name of the managed type.
Returns
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 method when it iterates through a JSON string to determine the specific managed type to which the JSON type should be converted.
Notes to Implementers
Given a string value, the type resolver must return a Type object that represents the corresponding managed type.