次の方法で共有


DeviceAccessInformation.AccessChanged イベント

定義

デバイスへのアクセスが変更されたときに発生します。

// Register
event_token AccessChanged(TypedEventHandler<DeviceAccessInformation, DeviceAccessChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
DeviceAccessInformation::AccessChanged_revoker AccessChanged(auto_revoke_t, TypedEventHandler<DeviceAccessInformation, DeviceAccessChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<DeviceAccessInformation,DeviceAccessChangedEventArgs> AccessChanged;
function onAccessChanged(eventArgs) { /* Your code */ }
deviceAccessInformation.addEventListener("accesschanged", onAccessChanged);
deviceAccessInformation.removeEventListener("accesschanged", onAccessChanged);
- or -
deviceAccessInformation.onaccesschanged = onAccessChanged;
Public Custom Event AccessChanged As TypedEventHandler(Of DeviceAccessInformation, DeviceAccessChangedEventArgs) 

イベントの種類

適用対象