Click or drag to resize
KnownTypeAttribute Class
Specifies types that should be recognized by the System.Runtime.Serialization.DataContractSerializer when serializing or deserializing a given type.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    System.Runtime.SerializationKnownTypeAttribute

Namespace: System.Runtime.Serialization
Assembly: CSharpXamlForHtml5.System.Runtime.Serialization.dll (in CSharpXamlForHtml5.System.Runtime.Serialization.dll.dll) Version: 1.0.0.0
Syntax
C#
public sealed class KnownTypeAttribute : Attribute

The KnownTypeAttribute type exposes the following members.

Constructors
  NameDescription
Public methodKnownTypeAttribute(String)
Initializes a new instance of the System.Runtime.Serialization.KnownTypeAttribute class with the name of a method that returns an System.Collections.IEnumerable of known types.
Public methodKnownTypeAttribute(Type)
Initializes a new instance of the System.Runtime.Serialization.KnownTypeAttribute class with the specified type.
Top
Methods
  NameDescription
Public methodEquals
Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from Attribute.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyMethodName
Gets the name of a method that will return a list of types that should be recognized during serialization or deserialization.
Public propertyType
Gets the type that should be recognized during serialization or deserialization by the System.Runtime.Serialization.DataContractSerializer.
Top
See Also