共用方式為


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) 完成,事件可能會進一步延遲。

適用於