Share via


LineDisplay Class

Definition

Represents a line display device.

public ref class LineDisplay sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class LineDisplay final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class LineDisplay : System.IDisposable
Public NotInheritable Class LineDisplay
Implements IDisposable
Inheritance
Object Platform::Object IInspectable LineDisplay
Attributes
Implements

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

This object is created when a GetDefaultAsync or FromIdAsync method completes.

See the line display sample for an example implementation.

Version history

Windows version SDK version Value added
1709 16299 CheckPowerStatusAsync
1709 16299 StatisticsCategorySelector

Properties

Capabilities

Gets the capabilities of the specified line display.

DeviceControlDescription

Gets the device control description of the line display.

DeviceControlVersion

Gets the device control version number of the line display.

DeviceId

Gets the DeviceInformation.Id of the line display.

DeviceServiceVersion

Gets the service version number of the line display.

PhysicalDeviceDescription

Gets the physical device description.

PhysicalDeviceName

Gets the physical device name.

StatisticsCategorySelector

Gets the standard UnifiedPOS statistics category selector strings.

Methods

CheckPowerStatusAsync()

Gets the current power status of the device.

ClaimAsync()

Attempts to gain exclusive access to the line display.

Close()

Close the line display session, allowing it to be claimed by another client. For C++ and JavaScript, use Close(). For C# and Visual Basic, use Dispose().

Dispose()

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

FromIdAsync(String)

Creates a LineDisplay object from the DeviceInformation.Id.

GetDefaultAsync()

Returns the first available line display.

GetDeviceSelector()

Gets an Advanced Query Syntax (AQS) string that you can use to list the available line displays.

GetDeviceSelector(PosConnectionTypes)

Gets an Advanced Query Syntax (AQS) string that you can use to list the line displays available over the specified connection types

Applies to