Specifies types that should be recognized by the DataContractSerializer when serializing or deserializing a given type.
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
Apply the attribute to a type to indicate to the DataContractSerializer types that should be recognized when serializing or deserializing an instance of the type to which the attribute is applied. This attribute could also be recognized by other serializers that understand data contracts.
In your code, you can use the word KnownType instead of the longer KnownTypeAttribute.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.