Export (0) Print
Expand All

XamlXmlWriter::WriteStartObject Method

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.

Namespace:  System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)

public:
virtual void WriteStartObject(
	XamlType^ type
) override

Parameters

type
Type: System.Xaml::XamlType
The XamlType (XAML type identifier) for the object to write.

ExceptionCondition
ArgumentNullException

type is nullptr.

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.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

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.

Community Additions

ADD
Show:
© 2014 Microsoft