Load Method (Stream, ParserContext)
Collapse the table of content
Expand the table of content

XamlReader.Load Method (Stream, ParserContext)

 

Reads the XAML input in the specified Stream and returns an object that is the root of the corresponding object tree.

Namespace:   System.Windows.Markup
Assembly:  PresentationFramework (in PresentationFramework.dll)

public static object Load(
	Stream stream,
	ParserContext parserContext
)

Parameters

stream
Type: System.IO.Stream

The stream that contains the XAML input to load.

parserContext
Type: System.Windows.Markup.ParserContext

Context information used by the parser.

Return Value

Type: System.Object

The object that is the root of the created object tree.

Exception Condition
ArgumentNullException

stream is null.

-or-

parserContext is null.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft