PrintWorkflowConfiguration 类

定义

包含有关源应用程序、打印作业标题和打印工作流会话的会话 ID 的信息。

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

Windows 要求

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

注解

此类向打印工作流应用的后台和前台组件提供相同的特定于会话的信息。

属性

JobTitle

获取此打印作业的职务。

SessionId

获取此打印作业的会话 ID。

SourceAppDisplayName

获取启动打印作业的外部应用程序的显示名称。

方法

AbortPrintFlow(PrintWorkflowJobAbortReason)

取消具有指定原因的当前打印工作流。 此方法还会取消打印设备中的相应打印作业(如果已创建)。

适用于