次の方法で共有


AppServiceConnection.ServiceClosed イベント

定義

他のエンドポイントがアプリ サービスへの接続を閉じると発生します。

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

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

// Revoke with event_revoker
AppServiceConnection::ServiceClosed_revoker ServiceClosed(auto_revoke_t, TypedEventHandler<AppServiceConnection, AppServiceClosedEventArgs const&> const& handler) const;
public event TypedEventHandler<AppServiceConnection,AppServiceClosedEventArgs> ServiceClosed;
function onServiceClosed(eventArgs) { /* Your code */ }
appServiceConnection.addEventListener("serviceclosed", onServiceClosed);
appServiceConnection.removeEventListener("serviceclosed", onServiceClosed);
- or -
appServiceConnection.onserviceclosed = onServiceClosed;
Public Custom Event ServiceClosed As TypedEventHandler(Of AppServiceConnection, AppServiceClosedEventArgs) 

イベントの種類

適用対象

こちらもご覧ください