Writes to a device path or file: /dev/usb/lp0, LPT1, \\.\USB001, a share, or a plain file. Write-only.
Constructors
| Signature | Description |
# RawFilePrinterConnection(string path, bool append = true) | Writes to a device path or file: /dev/usb/lp0, LPT1, \\.\USB001, a share, or a plain file. Write-only. |
Properties
| Property | Type | Description |
Append { get; } | bool | |
Path { get; } | string | |
Methods
| Method Signature | Returns | Description |
# DisposeAsync() | ValueTask | |
# QueryAsync(string command, TimeSpan timeout, CancellationToken ct = default) | Task<string> | Write-only transport: returns null without sending anything (a query must not end up as a print job). |
# SendAsync(byte[] data, CancellationToken ct = default) | Task | |