共用方式為


MobileBroadbandSlotManager.CurrentSlotIndexChanged 事件

定義

變更目前位置索引時所引發的事件。

注意

這項功能僅適用于行動電信業者提供特殊許可權存取權的電信業者應用程式和 UWP 應用程式。

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

// Register
event_token CurrentSlotIndexChanged(TypedEventHandler<MobileBroadbandSlotManager, MobileBroadbandCurrentSlotIndexChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MobileBroadbandSlotManager::CurrentSlotIndexChanged_revoker CurrentSlotIndexChanged(auto_revoke_t, TypedEventHandler<MobileBroadbandSlotManager, MobileBroadbandCurrentSlotIndexChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<MobileBroadbandSlotManager,MobileBroadbandCurrentSlotIndexChangedEventArgs> CurrentSlotIndexChanged;
function onCurrentSlotIndexChanged(eventArgs) { /* Your code */ }
mobileBroadbandSlotManager.addEventListener("currentslotindexchanged", onCurrentSlotIndexChanged);
mobileBroadbandSlotManager.removeEventListener("currentslotindexchanged", onCurrentSlotIndexChanged);
- or -
mobileBroadbandSlotManager.oncurrentslotindexchanged = onCurrentSlotIndexChanged;
Public Custom Event CurrentSlotIndexChanged As TypedEventHandler(Of MobileBroadbandSlotManager, MobileBroadbandCurrentSlotIndexChangedEventArgs) 

事件類型

Windows 需求

應用程式功能
cellularDeviceControl cellularDeviceIdentity

適用於