XamlServices.Load Method (XmlReader)

.NET Framework (current version)

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

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

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

public static object Load(
	XmlReader xmlReader


Type: System.Xml.XmlReader

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

Return Value

Type: System.Object

The output object graph.

Exception Condition

xamlReader input is null.

You should typically use this signature only if you defined your own implementation of a XmlReader.

.NET Framework
Available since 4.0
Return to top