Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CollectionDataContractAttribute.IsReference Property

Gets or sets a value that indicates whether to preserve object reference data.

Namespace:  System.Runtime.Serialization
Assemblies:   System.Runtime.Serialization (in System.Runtime.Serialization.dll)
  System.Runtime.Serialization.Primitives (in System.Runtime.Serialization.Primitives.dll)

public bool IsReference { get; set; }

Property Value

Type: System.Boolean
true to keep object reference data; otherwise, false. The default is false.

The IsReference setting does not apply to the elements of the collection.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1, 3.0 SP2

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
Show:
© 2015 Microsoft