DataContractAttribute.IsReference Property
Gets or sets a value that indicates whether to preserve object reference data.
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
Use the IsReference property to instruct the DataContractSerializer to insert XML constructs that preserve object reference information.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Using [DataMember IsRequired=true] with [DataContract IsReference=true] is not allowed
If you make your datacontract referable using [DataContract IsReference=true] then you can't use [DataMember IsRequired=true]
on members of this datacontract.
See details at http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/e5d38e14-31b0-4991-a988-d578c564e92d
See details at http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/e5d38e14-31b0-4991-a988-d578c564e92d
- 11/13/2010
- hevgen