PosPrinterStatus 類別

定義

提供服務點印表機狀態的相關資訊,例如印表機的電源狀態。

public ref class PosPrinterStatus sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PosPrinterStatus final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class PosPrinterStatus
Public NotInheritable Class PosPrinterStatus
繼承
Object Platform::Object IInspectable PosPrinterStatus
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

您可以使用 PosPrinter.StatusPosPrinterStatusUpdatedEventArgs.Status 屬性來取得 PosPrinterStatus

屬性

ExtendedStatus

取得原始設備製造商 (OEM) 所定義之服務點印表機電源狀態的擴充資訊。 只有在 PosPrinterStatus.StatusKind 屬性為 PosPrinterStatusKind.Extended時,值才有效。

StatusKind

取得服務點印表機的電源狀態。

適用於