MobileBroadbandSlotManager.SlotInfoChanged 事件

定義

變更位置資訊時所引發的事件。

注意

這項功能僅適用于行動電信業者應用程式,以及行動網路操作員提供特殊許可權存取的 UWP 應用程式。

如果您想要使用此 API 並將您的應用程式發佈至 Microsoft Store,則需要特殊核准。 如需詳細資訊,請參閱應用程式功能宣告主題中的受限制功能一節。

// Register
event_token SlotInfoChanged(TypedEventHandler<MobileBroadbandSlotManager, MobileBroadbandSlotInfoChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MobileBroadbandSlotManager::SlotInfoChanged_revoker SlotInfoChanged(auto_revoke_t, TypedEventHandler<MobileBroadbandSlotManager, MobileBroadbandSlotInfoChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<MobileBroadbandSlotManager,MobileBroadbandSlotInfoChangedEventArgs> SlotInfoChanged;
function onSlotInfoChanged(eventArgs) { /* Your code */ }
mobileBroadbandSlotManager.addEventListener("slotinfochanged", onSlotInfoChanged);
mobileBroadbandSlotManager.removeEventListener("slotinfochanged", onSlotInfoChanged);
- or -
mobileBroadbandSlotManager.onslotinfochanged = onSlotInfoChanged;
Public Custom Event SlotInfoChanged As TypedEventHandler(Of MobileBroadbandSlotManager, MobileBroadbandSlotInfoChangedEventArgs) 

事件類型

Windows 需求

應用程式功能
cellularDeviceControl cellularDeviceIdentity

適用於