XamlServices.Load Method (XamlReader)

Loads a specific XAML reader implementation and returns an object graph.

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

public static Object Load(
	XamlReader xamlReader
)

Parameters

xamlReader
Type: System.Xaml.XamlReader

The XAML reader implementation to use as the reader for this Load operation.

Return Value

Type: System.Object
The object graph that is returned.

ExceptionCondition
ArgumentNullException

xamlReader input is null.

You should typically use this signature only in the following cases:

  • You defined your own implementation of a XamlReader.

  • You specified settings for a XamlReader that differ from the default settings.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft