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來建構。 不同于其他周邊,已移除 Line 顯示器的 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()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

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, LineDisplayHorizontalAlignment, LineDisplayVerticalAlignment, Int32)

嘗試從 StorageFile 非同步儲存點陣圖影像,以供稍後線上條顯示裝置上顯示。

TryStoreStorageFileBitmapAsync(StorageFile, LineDisplayHorizontalAlignment, LineDisplayVerticalAlignment)

嘗試從 StorageFile 非同步儲存點陣圖影像,以供稍後線上條顯示裝置上顯示。

TryStoreStorageFileBitmapAsync(StorageFile)

嘗試從 StorageFile 非同步儲存點陣圖影像,以供稍後線上條顯示裝置上顯示。

TryUpdateAttributesAsync(LineDisplayAttributes)

更新裝置屬性。

事件

Closed

ClaimedLineDisplay關閉時引發的事件。

ReleaseDeviceRequested

發生于使用 LineDisplay.ClaimAsync的另一個應用程式宣告宣告宣告的宣告行顯示時。

StatusUpdated

通知應用程式線條顯示電源狀態有變更。

適用於