CastingConnection.ErrorOccurred Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates an error occurred while attempting to make a casting connection.
// Register
event_token ErrorOccurred(TypedEventHandler<CastingConnection, CastingConnectionErrorOccurredEventArgs const&> const& handler) const;
// Revoke with event_token
void ErrorOccurred(event_token const* cookie) const;
// Revoke with event_revoker
CastingConnection::ErrorOccurred_revoker ErrorOccurred(auto_revoke_t, TypedEventHandler<CastingConnection, CastingConnectionErrorOccurredEventArgs const&> const& handler) const;
public event TypedEventHandler<CastingConnection,CastingConnectionErrorOccurredEventArgs> ErrorOccurred;
function onErrorOccurred(eventArgs) { /* Your code */ }
castingConnection.addEventListener("erroroccurred", onErrorOccurred);
castingConnection.removeEventListener("erroroccurred", onErrorOccurred);
- or -
castingConnection.onerroroccurred = onErrorOccurred;
Public Custom Event ErrorOccurred As TypedEventHandler(Of CastingConnection, CastingConnectionErrorOccurredEventArgs)