Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Load Method (Stream, ParserContext)

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)

static member Load : 
        stream:Stream * 
        parserContext:ParserContext -> Object

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.

ExceptionCondition
ArgumentNullException

stream is a null reference (Nothing in Visual Basic).

-or-

parserContext is a null reference (Nothing in Visual Basic).

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft