XmlObjectSerializer.WriteObject Method (XmlWriter, Object)
Assembly: System.Runtime.Serialization (in system.runtime.serialization.dll)
An XmlWriter used to write the XML document or stream.
The object that contains the content to write.
the type being serialized does not conform to data contract rules. For example, the DataContractAttribute attribute has not been applied to the type.
there is a problem with the instance being serialized.
the maximum number of objects to serialize has been exceeded. Check the MaxItemsInObjectGraph property.
This is a virtual method, and has a default implementation that delegates writing to the XmlObjectSerializer.WriteObject(XmlDictionaryWriter,Object) overload.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.