Share via


DisplayManager.PathsFailedOrInvalidated Event

Definition

An event that is raised whenever a display path is failed or invalidated asynchronously by the system. This can be due to changing hardware bandwidth requirements, or due to driver failures.

Subscribers to this event should call TryAcquireTargetsAndReadCurrentState for targets that they own, and check whether any of the paths in the resulting DisplayState object have their Status property set to FailedAsync or InvalidatedAsync, and take the recommended action.

// Register
event_token PathsFailedOrInvalidated(TypedEventHandler<DisplayManager, DisplayManagerPathsFailedOrInvalidatedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
DisplayManager::PathsFailedOrInvalidated_revoker PathsFailedOrInvalidated(auto_revoke_t, TypedEventHandler<DisplayManager, DisplayManagerPathsFailedOrInvalidatedEventArgs const&> const& handler) const;
public event TypedEventHandler<DisplayManager,DisplayManagerPathsFailedOrInvalidatedEventArgs> PathsFailedOrInvalidated;
function onPathsFailedOrInvalidated(eventArgs) { /* Your code */ }
displayManager.addEventListener("pathsfailedorinvalidated", onPathsFailedOrInvalidated);
displayManager.removeEventListener("pathsfailedorinvalidated", onPathsFailedOrInvalidated);
- or -
displayManager.onpathsfailedorinvalidated = onPathsFailedOrInvalidated;
Public Custom Event PathsFailedOrInvalidated As TypedEventHandler(Of DisplayManager, DisplayManagerPathsFailedOrInvalidatedEventArgs) 

Event Type

Applies to