PreviewTeamView.CleanupRequested Event

Definition

The system is ending the current user's session and telling the VTC app that it should clean up any user state. If there is state on disk, or some other slow operation is required, the app can take the deferral in the argument.

// Register
event_token CleanupRequested(TypedEventHandler<PreviewTeamView, PreviewTeamCleanupRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
PreviewTeamView::CleanupRequested_revoker CleanupRequested(auto_revoke_t, TypedEventHandler<PreviewTeamView, PreviewTeamCleanupRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<PreviewTeamView,PreviewTeamCleanupRequestedEventArgs> CleanupRequested;
function onCleanupRequested(eventArgs) { /* Your code */ }
previewTeamView.addEventListener("cleanuprequested", onCleanupRequested);
previewTeamView.removeEventListener("cleanuprequested", onCleanupRequested);
- or -
previewTeamView.oncleanuprequested = onCleanupRequested;
Public Custom Event CleanupRequested As TypedEventHandler(Of PreviewTeamView, PreviewTeamCleanupRequestedEventArgs) 

Event Type

Applies to