←Select platform

SaveOptions(Stream) Method

Summary

Saves the default read options used for this BarcodeReader to the specified XML stream.

Syntax

C#
VB
C++
public void SaveOptions( 
   Stream stream 
) 
Public Overloads Sub SaveOptions( _ 
   ByVal stream As Stream _ 
)  
public: 
void SaveOptions(  
   Stream^ stream 
)  

Parameters

stream
The XML Stream to save the data to.

Remarks

The load/save methods are provided as helper methods for the user. The BarcodeEngine, BarcodeReader and BarcodeWriter do not use these methods internally.

The default read options can be retrieved using the GetDefaultOptions or GetAllDefaultOptions methods. You can then change the values of the BarcodeReadOptions object returned (or cast it back to the appropriate derived class). These options are used by the ReadBarcode and ReadBarcodes methods when no explicit options are passed by the user.

To load the default options from an XML stream, use BarcodeReader.LoadOptions(Stream stream).

To save and load data to an XML file, use BarcodeReader.SaveOptions(string fileName) and BarcodeReader.LoadOptions(string fileName).

Example

For an example, refer to LoadOptions(string fileName)

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Barcode Assembly