ESim.ProfileChanged 事件

定義

當 eSIM 設定檔的集合變更,或集合中其中一個設定檔的 屬性變更時發生。

注意

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

如果您想要使用此 API 並將您的應用程式發佈至 Microsoft Store,則必須要求特殊核准,才能使用自訂功能 Microsoft.eSIMManagement_8wekyb3d8bbwe。 如需詳細資訊,請參閱 自訂功能

// Register
event_token ProfileChanged(TypedEventHandler<ESim, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
ESim::ProfileChanged_revoker ProfileChanged(auto_revoke_t, TypedEventHandler<ESim, IInspectable const&> const& handler) const;
public event TypedEventHandler<ESim,object> ProfileChanged;
function onProfileChanged(eventArgs) { /* Your code */ }
eSim.addEventListener("profilechanged", onProfileChanged);
eSim.removeEventListener("profilechanged", onProfileChanged);
- or -
eSim.onprofilechanged = onProfileChanged;
Public Custom Event ProfileChanged As TypedEventHandler(Of ESim, Object) 

事件類型

Windows 需求

應用程式功能
Microsoft.eSIMManagement_8wekyb3d8bbwe

適用於