語言

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

適用於