IppPrintDevice 類別

定義

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

Windows 需求

裝置系列
Windows 11 (已於 10.0.22000.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v14.0 引進)

備註

如需此類別的詳細資訊,請參閱 列印支援應用程式設計指南

屬性

CanModifyUserDefaultPrintTicket

表示支援 網際網路列印通訊協定的印表機裝置, (IPP)

DeviceKind

表示支援 網際網路列印通訊協定的印表機裝置, (IPP)

IsIppFaxOutPrinter

表示支援 網際網路列印通訊協定的印表機裝置, (IPP)

PrinterName

取得印表機裝置的名稱。

PrinterUri

取得印表機裝置的 URI (,以便直接連絡印表機) 。

UserDefaultPrintTicket

表示支援 網際網路列印通訊協定的印表機裝置, (IPP)

方法

FromId(String)

從印表機裝置識別碼建立 IppPrintDevice 物件。

FromPrinterName(String)

從印表機名稱建立 IppPrintDevice 物件。

GetDeviceSelector()

擷取進階查詢語法 (AQS) 字串,以識別網際網路列印通訊協定 (IPP) 裝置。 您可以將該字串傳遞至 DeviceInformation.FindAllAsync ,以尋找裝置。

GetMaxSupportedPdfSize()

擷取值,指出支援的 PDF 大小上限,以位元組為單位。

GetMaxSupportedPdfVersion()

擷取字串,指出支援的 PDF 版本上限。

GetMaxSupportedPdlVersion(String)

表示支援 網際網路列印通訊協定的印表機裝置, (IPP)

GetPdlPassthroughProvider()

擷取 PdlPassthroughProvider 物件,此物件代表網際網路列印通訊協定 (IPP) 印表機的傳遞提供者。 如果不支援傳遞,則方法會失敗;先呼叫 IppPrintDevice.IsPdlPassthroughSupported

GetPrinterAttributes(IIterable<String>)

取得目前印表機的屬性,做為網際網路列印通訊協定對應 (IPP) 屬性名稱和值組。

GetPrinterAttributesAsBuffer(IIterable<String>)

取得目前印表機的屬性,此緩衝區包含序列化網際網路列印通訊協定 (IPP) 回應的印表機屬性群組。

IsIppPrinter(String)

判斷字串引數是否為網際網路列印通訊協定 (IPP) 印表機的名稱。

IsPdlPassthroughSupported(String)

判斷網際網路列印通訊協定 (IPP) 印表機裝置是否支援指定 PDL 格式的分頁描述語言 (PDL) 傳遞。

RefreshPrintDeviceCapabilities()

表示支援 網際網路列印通訊協定的印表機裝置, (IPP)

SetPrinterAttributes(IIterable<KeyValuePair<String,IppAttributeValue>>)

設定目前印表機的屬性,如網際網路列印通訊協定指定的對應所指定, (IPP) 屬性名稱和值組。

SetPrinterAttributesFromBuffer(IBuffer)

設定目前印表機的屬性,如指定的緩衝區所指定,其中包含序列化網際網路列印通訊協定 (IPP) 屬性群組。

適用於

另請參閱