Freigeben über


PrintSupportExtensionSession.PrinterSelected Ereignis

Definition

Wird ausgelöst, wenn der ausgewählte Drucker im Druckerdialogfeld in den Drucker geändert wird, der der Druckerunterstützungs-App zugeordnet ist.

// Register
event_token PrinterSelected(TypedEventHandler<PrintSupportExtensionSession, PrintSupportPrinterSelectedEventArgs const&> const& handler) const;

// Revoke with event_token
void PrinterSelected(event_token const* cookie) const;

// Revoke with event_revoker
PrintSupportExtensionSession::PrinterSelected_revoker PrinterSelected(auto_revoke_t, TypedEventHandler<PrintSupportExtensionSession, PrintSupportPrinterSelectedEventArgs const&> const& handler) const;
public event TypedEventHandler<PrintSupportExtensionSession,PrintSupportPrinterSelectedEventArgs> PrinterSelected;
function onPrinterSelected(eventArgs) { /* Your code */ }
printSupportExtensionSession.addEventListener("printerselected", onPrinterSelected);
printSupportExtensionSession.removeEventListener("printerselected", onPrinterSelected);
- or -
printSupportExtensionSession.onprinterselected = onPrinterSelected;
Public Custom Event PrinterSelected As TypedEventHandler(Of PrintSupportExtensionSession, PrintSupportPrinterSelectedEventArgs) 

Ereignistyp

Windows-Anforderungen

Gerätefamilie
Windows 11 Insider Preview (eingeführt in 10.0.23504.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v15.0)

Gilt für: