PrintSupportExtensionSession.PrinterSelected 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当打印机对话框中的所选打印机更改为与打印机支持应用关联的打印机时引发。
// 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)
事件类型
Windows 要求
设备系列 |
Windows 11 Insider Preview (在 10.0.23504.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v15.0 中引入)
|