Click or drag to resize
CollectionDataContractAttribute Class
When applied to a collection type, enables custom specification of the collection item elements. This attribute can be applied only to types that are recognized by the System.Runtime.Serialization.DataContractSerializer as valid, serializable collections.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    System.Runtime.SerializationCollectionDataContractAttribute

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

The CollectionDataContractAttribute type exposes the following members.

Constructors
  NameDescription
Public methodCollectionDataContractAttribute
Initializes a new instance of the System.Runtime.Serialization.CollectionDataContractAttribute 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 propertyItemName
Gets or sets a custom name for a collection element.
Public propertyKeyName
Gets or sets the custom name for a dictionary key name.
Public propertyName
Gets or sets the data contract name for the collection type.
Public propertyNamespace
Gets or sets the namespace for the data contract.
Public propertyValueName
Gets or sets the custom name for a dictionary value name.
Top
See Also