XamlObjectWriterSettings.RootObjectInstance Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets a preexisting root object for XamlObjectWriter operations.

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

public object RootObjectInstance { get; set; }

Property Value

Type: System.Object

A preexisting root object for XamlObjectWriter operations.

If you set this value, the root object instance is used as an implicit WriteStartObject call (with object input that is direct instead of coming from the reader) that precedes the first explicit node-write call by the XamlObjectWriter. Any error checking, such as verifying the XAML type of the provided root object, is deferred until that implicit WriteStartObject call, instead of being checked when you set this settings property.

.NET Framework
Available since 4.0
Return to top
Show: