Baml2006Reader Constructor (Stream, XamlReaderSettings)

Initializes a new instance of the Baml2006Reader class based on an input stream and reader settings.

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

public Baml2006Reader(
	Stream stream,
	XamlReaderSettings xamlReaderSettings
)

Parameters

stream
Type: System.IO.Stream

Input stream of source BAML.

xamlReaderSettings
Type: System.Xaml.XamlReaderSettings

Reader settings. See Remarks.

ExceptionCondition
ArgumentNullException

stream or xamlReaderSettings is null.

Baml2006Reader uses an internal settings class override. However you can pass the information that is permitted by the XamlReaderSettings base class, and your passed settings are internally upgraded to or merged into the internal settings. Passing null for xamlReaderSettings of this signature throws an exception. If you have no special settings to report, use the Baml2006Reader(Stream) signature.

.NET Framework

Supported in: 4.5, 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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft