PrintWorkflowForegroundSession.XpsDataAvailable Événement

Définition

Déclenché lorsque les données d’impression XPS peuvent être lues. Cette opération est effectuée une fois l’événement SetupRequested déclenché . Inscrivez-vous à cet événement pour effectuer un travail dépendant de l’interface utilisateur qui nécessite l’affichage du contenu d’impression.

// Register
event_token XpsDataAvailable(TypedEventHandler<PrintWorkflowForegroundSession, PrintWorkflowXpsDataAvailableEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
PrintWorkflowForegroundSession::XpsDataAvailable_revoker XpsDataAvailable(auto_revoke_t, TypedEventHandler<PrintWorkflowForegroundSession, PrintWorkflowXpsDataAvailableEventArgs const&> const& handler) const;
public event TypedEventHandler<PrintWorkflowForegroundSession,PrintWorkflowXpsDataAvailableEventArgs> XpsDataAvailable;
function onXpsDataAvailable(eventArgs) { /* Your code */ }
printWorkflowForegroundSession.addEventListener("xpsdataavailable", onXpsDataAvailable);
printWorkflowForegroundSession.removeEventListener("xpsdataavailable", onXpsDataAvailable);
- or -
printWorkflowForegroundSession.onxpsdataavailable = onXpsDataAvailable;
Public Custom Event XpsDataAvailable As TypedEventHandler(Of PrintWorkflowForegroundSession, PrintWorkflowXpsDataAvailableEventArgs) 

Type d'événement

S’applique à