XamlObjectWriter.Result Property

.NET Framework (current version)

Gets the last object that was written. Typically only called when the node stream is at its end and the object graph is complete.

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

public virtual object Result { get; }

Property Value

Type: System.Object

The last object written, or null. See Remarks.

The most typical usage of Result is to call it only when the node stream is known to be at its end, and the object graph is complete. Otherwise, the object graph is likely to be incomplete, and is not useful for most platform scenarios.

Result typically only contains a non-null value if it is called immediately after a call to WriteEndObject, and if the current scope is in the member where the object provides a value.

.NET Framework
Available since 4.0
Return to top