Share via


ContentIsland.StateChanged 事件

定义

当此 ContentIsland 的状态属性更改时发生。

// Register
event_token StateChanged(TypedEventHandler<ContentIsland, ContentIslandStateChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ContentIsland::StateChanged_revoker StateChanged(auto_revoke_t, TypedEventHandler<ContentIsland, ContentIslandStateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<ContentIsland,ContentIslandStateChangedEventArgs> StateChanged;
function onStateChanged(eventArgs) { /* Your code */ }
contentIsland.addEventListener("statechanged", onStateChanged);
contentIsland.removeEventListener("statechanged", onStateChanged);
- or -
contentIsland.onstatechanged = onStateChanged;
Public Custom Event StateChanged As TypedEventHandler(Of ContentIsland, ContentIslandStateChangedEventArgs) 

事件类型

注解

此事件在所有状态更改后异步引发。 如果状态更改延迟 (看到 ContentDeferral) 完成,则事件可能会进一步延迟。

适用于