PosPrinter PosPrinter PosPrinter PosPrinter PosPrinter Class


Represents a point-of-service printer.

public : sealed class PosPrinter : IClosable
struct winrt::Windows::Devices::PointOfService::PosPrinter : IClosable
public sealed class PosPrinter : IDisposable
Public NotInheritable Class PosPrinter Implements IDisposable
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


To get a PosPrinter object, use the FromIdAsync or GetDefaultAsync static methods.

See the POS printer sample for an example implementation.

Version history

Windows version SDK version Value added
1703 15063 GetDeviceSelector(PosConnectionTypes)
1903 18362 SupportedBarcodeSymbologies


Capabilities Capabilities Capabilities Capabilities Capabilities

Gets the capabilities of the point-of-service printer.

DeviceId DeviceId DeviceId DeviceId DeviceId

Gets the identifier of the point-of-service printer.

Status Status Status Status Status

Gets the current status of the power and availability of the point-of-service printer.

SupportedBarcodeSymbologies SupportedBarcodeSymbologies SupportedBarcodeSymbologies SupportedBarcodeSymbologies SupportedBarcodeSymbologies

Gets the barcode symbologies that the point-of-service printer supports.

SupportedCharacterSets SupportedCharacterSets SupportedCharacterSets SupportedCharacterSets SupportedCharacterSets

Gets the list of character sets that the point-of-service printer supports.

SupportedTypeFaces SupportedTypeFaces SupportedTypeFaces SupportedTypeFaces SupportedTypeFaces

Gets the fonts and typefaces that the point-of-service printer supports.


CheckHealthAsync(UnifiedPosHealthCheckLevel) CheckHealthAsync(UnifiedPosHealthCheckLevel) CheckHealthAsync(UnifiedPosHealthCheckLevel) CheckHealthAsync(UnifiedPosHealthCheckLevel) CheckHealthAsync(UnifiedPosHealthCheckLevel)

Gets the health state of the point-of-service printer asynchronously.

ClaimPrinterAsync() ClaimPrinterAsync() ClaimPrinterAsync() ClaimPrinterAsync() ClaimPrinterAsync()

Claims the point-of-service printer for use, and gets an instance of the ClaimedPosPrinter class for the point-of-service printer.

Close() Close() Close() Close() Close()

Close the POS printer session. For C++ and JavaScript, use Close(). For C# and Visual Basic, use Dispose().

Dispose() Dispose() Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

FromIdAsync(String) FromIdAsync(String) FromIdAsync(String) FromIdAsync(String) FromIdAsync(String)

Creates a PosPrinter object for point-of-service printer with the specified DeviceInformation.Id.

GetDefaultAsync() GetDefaultAsync() GetDefaultAsync() GetDefaultAsync() GetDefaultAsync()

Gets the default paired or locally-connected printer.

GetDeviceSelector() GetDeviceSelector() GetDeviceSelector() GetDeviceSelector() GetDeviceSelector()

Gets an Advanced Query Syntax (AQS) string that you can use to list the available point-of-service printers.

GetDeviceSelector(PosConnectionTypes) GetDeviceSelector(PosConnectionTypes) GetDeviceSelector(PosConnectionTypes) GetDeviceSelector(PosConnectionTypes) GetDeviceSelector(PosConnectionTypes)

Gets an Advanced Query Syntax (AQS) string that you can use to list the point-of-service printers available over the specified connection types

GetFontProperty(String) GetFontProperty(String) GetFontProperty(String) GetFontProperty(String) GetFontProperty(String)

Gets the specified font property from the point-of-service printers.

GetStatisticsAsync(IIterable<String>) GetStatisticsAsync(IIterable<String>) GetStatisticsAsync(IIterable<String>) GetStatisticsAsync(IIterable<String>) GetStatisticsAsync(IIterable<String>)

Gets the specified statistics from the point-of-service printer.


StatusUpdated StatusUpdated StatusUpdated StatusUpdated StatusUpdated

Occurs when the status of the power or availability of the point-of-service printer changes.

See also