ContentIslandEnvironment.SettingChanged 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在此实例上更改设置时发生。
// Register
event_token SettingChanged(TypedEventHandler<ContentIslandEnvironment, ContentEnvironmentSettingChangedEventArgs const&> const& handler) const;
// Revoke with event_token
void SettingChanged(event_token const* cookie) const;
// Revoke with event_revoker
ContentIslandEnvironment::SettingChanged_revoker SettingChanged(auto_revoke_t, TypedEventHandler<ContentIslandEnvironment, ContentEnvironmentSettingChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<ContentIslandEnvironment,ContentEnvironmentSettingChangedEventArgs> SettingChanged;
function onSettingChanged(eventArgs) { /* Your code */ }
contentIslandEnvironment.addEventListener("settingchanged", onSettingChanged);
contentIslandEnvironment.removeEventListener("settingchanged", onSettingChanged);
- or -
contentIslandEnvironment.onsettingchanged = onSettingChanged;
Public Custom Event SettingChanged As TypedEventHandler(Of ContentIslandEnvironment, ContentEnvironmentSettingChangedEventArgs)