JavaScriptConverter::SupportedTypes Property
When overridden in a derived class, gets a collection of the supported types.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
public: virtual property IEnumerable<Type^>^ SupportedTypes { 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 InheritorsSupportedTypes 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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.