Dela via


XamlBinaryWriter.Write Method

Definition

Produces a binary representation of XAML. Input streams are produced in text representation, and output streams are populated with XAML in binary (XBF) representation.

Important

XamlBinaryWriter is not intended for use by typical app code. It is intended for use by tools and processes that are directly involved in producing an app package on a developer's machine.

public:
 static XamlBinaryWriterErrorInformation Write(IVector<IRandomAccessStream ^> ^ inputStreams, IVector<IRandomAccessStream ^> ^ outputStreams, IXamlMetadataProvider ^ xamlMetadataProvider);
 static XamlBinaryWriterErrorInformation Write(IVector<IRandomAccessStream> const& inputStreams, IVector<IRandomAccessStream> const& outputStreams, IXamlMetadataProvider const& xamlMetadataProvider);
public static XamlBinaryWriterErrorInformation Write(IList<IRandomAccessStream> inputStreams, IList<IRandomAccessStream> outputStreams, IXamlMetadataProvider xamlMetadataProvider);
function write(inputStreams, outputStreams, xamlMetadataProvider)
Public Shared Function Write (inputStreams As IList(Of IRandomAccessStream), outputStreams As IList(Of IRandomAccessStream), xamlMetadataProvider As IXamlMetadataProvider) As XamlBinaryWriterErrorInformation

Parameters

inputStreams

IVector<IRandomAccessStream>

IList<IRandomAccessStream>

The set of input streams. These are expected to access the text representation of the XAML to write into XBF format.

outputStreams

IVector<IRandomAccessStream>

IList<IRandomAccessStream>

The set of output streams. When the method returns each output stream provides access to the XBF binary representation. You'd typically use this stream to create a file.

xamlMetadataProvider
IXamlMetadataProvider

A helper object that maps types for XAML productions.

Returns

A structure that captures any error information that is reported by the conversion into XBF format.

Remarks

Any input stream that generated error information is skipped and won't write anything into the corresponding output stream.

Applies to