AppServiceConnection.ServiceClosed AppServiceConnection.ServiceClosed AppServiceConnection.ServiceClosed AppServiceConnection.ServiceClosed AppServiceConnection.ServiceClosed Event

Definition

Occurs when the other endpoint closes the connection to the app service.

public : event TypedEventHandler<AppServiceConnection, AppServiceClosedEventArgs> ServiceClosed
// Register
event_token ServiceClosed(TypedEventHandler<AppServiceConnection, AppServiceClosedEventArgs> const& handler) const;

// Revoke with event_token
void ServiceClosed(event_token const& cookie) const;

// Revoke with event_revoker
ServiceClosed_revoker ServiceClosed(auto_revoke_t, TypedEventHandler<AppServiceConnection, AppServiceClosedEventArgs> const& handler) const;
public event TypedEventHandler<AppServiceConnection, AppServiceClosedEventArgs> ServiceClosed
Public Event ServiceClosed As TypedEventHandler (Of AppServiceConnection, AppServiceClosedEventArgs)
function onServiceClosed(eventArgs){/* Your code */}


appServiceConnection.addEventListener("serviceclosed", onServiceClosed);
appServiceConnection.removeEventListener("serviceclosed", onServiceClosed);

See also