XamlXmlWriter.WriteStartObject Method
.NET Framework 4
Writes a XAML start object node to the underlying XmlWriter or TextWriter. Throws an exception if the current position of the XAML node stream is not in a scope where a start object can be written, or if the writer is not in a state that can write a start object.
Assembly: System.Xaml (in System.Xaml.dll)
| Exception | Condition |
|---|---|
| ArgumentNullException | type is null. |
| ArgumentException | type is not a valid XamlType. |
| InvalidOperationException | The current position of the XAML node stream is not valid for writing a new start object. |
| XamlXmlWriterException | The state of the XAML writer is not valid for writing a new start object. |
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.