Modifica

Condividi tramite


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.

public:
 override void WriteStartObject(System::Xaml::XamlType ^ type);
public override void WriteStartObject (System.Xaml.XamlType type);
override this.WriteStartObject : System.Xaml.XamlType -> unit
Public Overrides Sub WriteStartObject (type As XamlType)

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