Export (0) Print
Expand All

XamlObjectWriter.Result Property

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)

abstract Result : Object with get 
override Result : Object with get

Property Value

Type: System.Object
The last object written, or a null reference (Nothing in Visual Basic). 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

Supported in: 4.5.3, 4

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft