Edytuj

Udostępnij za pośrednictwem


Baml2006Reader Constructors

Definition

Initializes a new instance of the Baml2006Reader class.

Overloads

Baml2006Reader(Stream)

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

Baml2006Reader(String)

Initializes a new instance of the Baml2006Reader class, based on the file name of a local file to read.

Baml2006Reader(Stream, XamlReaderSettings)

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

Baml2006Reader(Stream)

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

public:
 Baml2006Reader(System::IO::Stream ^ stream);
public Baml2006Reader (System.IO.Stream stream);
new System.Windows.Baml2006.Baml2006Reader : System.IO.Stream -> System.Windows.Baml2006.Baml2006Reader
Public Sub New (stream As Stream)

Parameters

stream
Stream

Input stream of source BAML.

Exceptions

stream is null.

Applies to

Baml2006Reader(String)

Initializes a new instance of the Baml2006Reader class, based on the file name of a local file to read.

public:
 Baml2006Reader(System::String ^ fileName);
public Baml2006Reader (string fileName);
new System.Windows.Baml2006.Baml2006Reader : string -> System.Windows.Baml2006.Baml2006Reader
Public Sub New (fileName As String)

Parameters

fileName
String

String that declares a file path to the file that contains BAML to read.

Exceptions

fileName is null.

Applies to

Baml2006Reader(Stream, XamlReaderSettings)

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

public:
 Baml2006Reader(System::IO::Stream ^ stream, System::Xaml::XamlReaderSettings ^ xamlReaderSettings);
public Baml2006Reader (System.IO.Stream stream, System.Xaml.XamlReaderSettings xamlReaderSettings);
new System.Windows.Baml2006.Baml2006Reader : System.IO.Stream * System.Xaml.XamlReaderSettings -> System.Windows.Baml2006.Baml2006Reader
Public Sub New (stream As Stream, xamlReaderSettings As XamlReaderSettings)

Parameters

stream
Stream

Input stream of source BAML.

xamlReaderSettings
XamlReaderSettings

Reader settings.

Exceptions

stream or xamlReaderSettings is null.

Remarks

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.

Applies to