ClaimedLineDisplay 类

定义

表示声明的行显示设备。

public ref class ClaimedLineDisplay 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 ClaimedLineDisplay 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 ClaimedLineDisplay : System.IDisposable
Public NotInheritable Class ClaimedLineDisplay
Implements IDisposable
继承
Object Platform::Object IInspectable ClaimedLineDisplay
属性
实现

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

注解

可以直接构造此对象,也可以使用 LineDisplay.ClaimAsync 构造。 与其他外围设备不同,已删除行显示器的 EnableAsync () 方法。 相反,每当发送需要行显示处于启用状态的命令时,设备都会隐式启用。

版本历史记录

Windows 版本 SDK 版本 已添加值
1709 16299 CheckHealthAsync
1709 16299 CheckPowerStatusAsync
1709 16299 CustomGlyphs
1709 16299 GetAttributes
1709 16299 GetStatisticsAsync
1709 16299 MaxBitmapSizeInPixels
1709 16299 StatusUpdated
1709 16299 SupportedCharacterSets
1709 16299 SupportedScreenSizesInCharacters
1709 16299 TryClearDescriptorsAsync
1709 16299 TryCreateWindowAsync
1709 16299 TrySetDescriptorAsync
1709 16299 TryStoreStorageFileBitmapAsync (StorageFile)
1709 16299 TryStoreStorageFileBitmapAsync (StorageFile,LineDisplayHorizontalAlignment,LineDisplayVerticalAlignment)
1709 16299 TryStoreStorageFileBitmapAsync (StorageFile,LineDisplayHorizontalAlignment,LineDisplayVerticalAlignment,Int32)
1709 16299 TryUpdateAttributesAsync
1809 17763 已关闭

属性

Capabilities

获取声明的行显示的功能。

CustomGlyphs

如果支持该功能,则获取线条显示的自定义字形列表。

DefaultWindow

获取行显示的默认设备窗口。

DeviceControlDescription

获取行显示的设备控件说明。

DeviceControlVersion

获取行显示的设备控件版本号。

DeviceId

获取行显示的 DeviceInformation.Id

DeviceServiceVersion

获取行显示的服务版本号。

MaxBitmapSizeInPixels

获取最大位图大小。

PhysicalDeviceDescription

获取物理设备说明。

PhysicalDeviceName

获取物理设备名称。

SupportedCharacterSets

获取行显示支持的字符集。

SupportedScreenSizesInCharacters

获取行显示支持的屏幕大小。

方法

CheckHealthAsync(UnifiedPosHealthCheckLevel)

异步获取设备的运行状况状态。

CheckPowerStatusAsync()

获取设备的当前电源状态。

Close()

关闭行显示会话。 对于 C++ 和 JavaScript,请使用 Close () 。 对于 C# 和 Visual Basic,请使用 Dispose () 。

Dispose()

执行与释放或重置非托管资源关联的应用程序定义的任务。

FromIdAsync(String)

DeviceInformation.Id 创建 LineDisplay 对象。

GetAttributes()

获取行显示的属性。

GetDeviceSelector()

获取可用于列出可用行显示的 AQS) 字符串 (高级查询语法。

GetDeviceSelector(PosConnectionTypes)

获取高级查询语法 (AQS) 字符串,可用于列出指定连接类型上可用的行显示

GetStatisticsAsync(IIterable<String>)

从行显示中检索请求的统计信息。

RetainDevice()

使用 LineDisplay.ClaimAsync 由另一个应用声明后,在行显示设备上保留应用的声明。

TryClearDescriptorsAsync()

尝试异步清除所有说明。

TryCreateWindowAsync(Rect, Size)

尝试异步创建 LineDisplayWindow

TrySetDescriptorAsync(UInt32, LineDisplayDescriptorState)

尝试使用指定的属性异步设置描述符。

TryStoreStorageFileBitmapAsync(StorageFile)

尝试从 StorageFile 异步存储位图图像,以便以后在行显示设备上显示。

TryStoreStorageFileBitmapAsync(StorageFile, LineDisplayHorizontalAlignment, LineDisplayVerticalAlignment)

尝试从 StorageFile 异步存储位图图像,以便以后在行显示设备上显示。

TryStoreStorageFileBitmapAsync(StorageFile, LineDisplayHorizontalAlignment, LineDisplayVerticalAlignment, Int32)

尝试从 StorageFile 异步存储位图图像,以便以后在行显示设备上显示。

TryUpdateAttributesAsync(LineDisplayAttributes)

汇报设备属性。

事件

Closed

ClaimedLineDisplay 关闭时引发的事件。

ReleaseDeviceRequested

当声明的行显示声明由另一个应用使用 LineDisplay.ClaimAsync 声明时发生。

StatusUpdated

通知应用程序线路显示的电源状态发生了更改。

适用于