Click or drag to resize
DataContractAttribute Class
Specifies that the type defines or implements a data contract and is serializable by a serializer, such as the System.Runtime.Serialization.DataContractSerializer. To make their type serializable, type authors must define a data contract for their type.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    System.Runtime.SerializationDataContractAttribute

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 DataContractAttribute : Attribute

The DataContractAttribute type exposes the following members.

Constructors
  NameDescription
Public methodDataContractAttribute
Initializes a new instance of the System.Runtime.Serialization.DataContractAttribute class.
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 propertyIsReference
Gets or sets a value that indicates whether to preserve object reference data.
Public propertyName
Gets or sets the name of the data contract for the type.
Public propertyNamespace
Gets or sets the namespace for the data contract for the type.
Top
See Also