مشاركة عبر


PrintSupportPrinterSelectedEventArgs Class

Definition

Provides data for the PrintSupportExtensionSession.PrinterSelected event, which is raised when the selected printer in the printer dialog is changed to the printer associated with printer support app.

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

Windows requirements

Device family
Windows 11 Insider Preview (introduced in 10.0.23504.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v15.0)

Properties

AllowedAdditionalFeaturesAndParametersCount

Gets a value indicating the number of features and parameters that can be displayed in the print dialog.

PrintTicket

Gets the PrintTicket associated with the PrintSupportExtensionSession.PrinterSelected event.

SourceAppInfo

Gets an object that provides information about the source app associated with the PrintSupportExtensionSession.PrinterSelected event.

Methods

GetDeferral()

Informs the system that the app might continue to perform work after the PrintSupportExtensionSession.PrinterSelected event handler returns.

SetAdaptiveCard(IAdaptiveCard)

Sets the adaptive card to be shown by the print system in the print dialog in response to the PrintSupportExtensionSession.PrinterSelected event.

SetAdditionalFeatures(IIterable<PrintSupportPrintTicketElement>)

Specifies additional PrintTicket features to be shown in the print dialog, if not already shown.

SetAdditionalParameters(IIterable<PrintSupportPrintTicketElement>)

Specifies additional PrintTicket parameters to be shown in the print dialog, if not already shown.

Applies to