Click or drag to resize

PrinterUtilListFiles Method

Retrieves the names of the files which are stored on the device.

Namespace:  Zebra.Sdk.Printer
Assembly:  SdkApi_Core (in SdkApi_Core.dll) Version: 2.13.898
Syntax
public static string[] ListFiles(
	string connectionString,
	string filter
)

Parameters

connectionString
Type: SystemString
The connection string. (May be null)
filter
Type: SystemString
Filter for returned files. (e.g. "E:*.ZPL", "*:*.*", "R:MYFILE.*")

Return Value

Type: String
List of file names on the printer.
Exceptions
ExceptionCondition
ConnectionExceptionIf there is an error connecting to the device.
ZebraPrinterLanguageUnknownExceptionIf the printer language could not be determined.
ZebraIllegalArgumentExceptionIf there is an error parsing the directory data returned by the device.
NotALinkOsPrinterExceptionThis feature is only available on Link-OS™ printers.
Remarks
See ConnectionBuilder for the format of connectionString.
See Also