Edit

Share via


XamlXmlWriter.WriteStartObject(XamlType) Method

Definition

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.

C#
public override void WriteStartObject(System.Xaml.XamlType type);

Parameters

type
XamlType

The XamlType (XAML type identifier) for the object to write.

Exceptions

type is null.

type is not a valid XamlType.

The current position of the XAML node stream is not valid for writing a new start object.

The state of the XAML writer is not valid for writing a new start object.

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10