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

适用于