Επεξεργασία

Κοινή χρήση μέσω


XamlObjectWriterSettings.RootObjectInstance Property

Definition

Gets or sets a preexisting root object for XamlObjectWriter operations.

public:
 property System::Object ^ RootObjectInstance { System::Object ^ get(); void set(System::Object ^ value); };
public object RootObjectInstance { get; set; }
member this.RootObjectInstance : obj with get, set
Public Property RootObjectInstance As Object

Property Value

A preexisting root object for XamlObjectWriter operations.

Remarks

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.

Applies to