PrintSupportExtensionSession Class

Definition

Represents a session of a print support extension.

public ref class PrintSupportExtensionSession sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 851968)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PrintSupportExtensionSession final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 851968)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class PrintSupportExtensionSession
Public NotInheritable Class PrintSupportExtensionSession
Inheritance
Object Platform::Object IInspectable PrintSupportExtensionSession
Attributes

Windows requirements

Device family
Windows 11 (introduced in 10.0.22000.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v14.0)

Remarks

To a create print support extension, your app must declare a uap4:Extension element with the category windows.printSupportSettings in its package manifest that specifies the entry point of a background task. When the background task is activated, the IBackgroundTask.Run method receives an IBackgroundTaskInstance object. You can cast the TriggerDetails property of this object to a PrintSupportExtensionTriggerDetails object to get more details about the print support extension session.

For more information, see Print support app design guide.

Properties

Printer

Gets the printer device for the current session.

Methods

Start()

Starts the print support service so it can begin raising events.

Events

CommunicationErrorDetected
PrintDeviceCapabilitiesChanged

Raised when the system updates the cached print capabilities of the associated Internet Printing Protocol (IPP) printer.

PrinterSelected

Raised when the selected printer in the printer dialog is changed to the printer associated with printer support app.

PrintTicketValidationRequested

Raised when the system needs to validate a print ticket.

Applies to

See also