PrintWorkflowForegroundSession 類別

定義

表示在前景中執行的單一列印工作流程會話。

public ref class PrintWorkflowForegroundSession 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 PrintWorkflowForegroundSession 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 PrintWorkflowForegroundSession
Public NotInheritable Class PrintWorkflowForegroundSession
繼承
Object Platform::Object IInspectable PrintWorkflowForegroundSession
屬性

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

備註

這個類別的實例是從使用前景工作啟用傳入的 PrintWorkflowUIActivatedEventArgs 實例取得。

屬性

Status

目前列印工作流程會話的狀態。

方法

Start()

啟動列印工作流程前景進程。 這個類別的事件會依循序順序引發。

事件

SetupRequested

先在列印工作流程前景會話中引發。 此事件會公開列印工作的相關資訊,但不會公開列印內容本身的資訊。 註冊此事件,在列印之前先對列印工作執行 UI 相依工作。

XpsDataAvailable

當 XPS 列印資料可供讀取時引發。 這會在引發 SetupRequested 事件之後完成。 註冊此事件,以執行需要顯示列印內容的 UI 相依工作。

適用於