PdlPassthroughTarget 类

定义

表示打印作业 PDL 直通流。

public ref class PdlPassthroughTarget sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 983040)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PdlPassthroughTarget final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 983040)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class PdlPassthroughTarget : System.IDisposable
Public NotInheritable Class PdlPassthroughTarget
Implements IDisposable
继承
Object Platform::Object IInspectable PdlPassthroughTarget
属性
实现

Windows 要求

设备系列
Windows 11 Insider Preview (在 10.0.23504.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v15.0 中引入)

属性

PrintJobId

获取当前打印作业的打印后台处理程序作业 ID。

方法

Close()

关闭流。 在调用 Submit 之前调用 Close

Dispose()

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

GetOutputStream()

检索将传递给打印机的输出流。

Submit()

指示 PDL 流已完成。 在调用 Submit 之前调用 Close,否则打印作业将失败。

适用于