Compartir a través de


PrintSupportExtensionSession.PrinterSelected Evento

Definición

Se genera cuando se cambia la impresora seleccionada en el cuadro de diálogo de impresora a la impresora asociada a la aplicación de soporte técnico de impresora.

// 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) 

Tipo de evento

Requisitos de Windows

Familia de dispositivos
Windows 11 Insider Preview (se introdujo en la versión 10.0.23504.0)
API contract
Windows.Foundation.UniversalApiContract (se introdujo en la versión v15.0)

Se aplica a