JavaScriptConverter::SupportedTypes Property

 

When overridden in a derived class, gets a collection of the supported types.

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

public:
property IEnumerable<Type^>^ SupportedTypes {
	virtual IEnumerable<Type^>^ get() abstract;
}

Property Value

Type: System.Collections.Generic::IEnumerable<Type^>^

An object that implements IEnumerable<T> that represents the types supported by the converter.

The SupportedTypes property lists the types that are supported by the converter. At run time, a JavaScriptSerializer instance uses this property to determine the mapping of managed types to their corresponding custom converters.

Notes to Inheritors:

SupportedTypes must always return a collection, and the collection must contain at least one entry.

The following example shows how to override the SupportedTypes property in a derived class. In this example, the converter supports only the ListItemCollection type. This code example is part of a larger example provided for the JavaScriptConverter class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.5
Return to top
Show: