共用方式為


IExpContentTopLevelHost.StateChanged 事件

定義

// Register
event_token StateChanged(TypedEventHandler<IExpContentTopLevelHost, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
IExpContentTopLevelHost::StateChanged_revoker StateChanged(auto_revoke_t, TypedEventHandler<IExpContentTopLevelHost, IInspectable const&> const& handler) const;
event TypedEventHandler<IExpContentTopLevelHost,object> StateChanged;
function onStateChanged(eventArgs) { /* Your code */ }
iExpContentTopLevelHost.addEventListener("statechanged", onStateChanged);
iExpContentTopLevelHost.removeEventListener("statechanged", onStateChanged);
- or -
iExpContentTopLevelHost.onstatechanged = onStateChanged;
Event StateChanged As TypedEventHandler(Of IExpContentTopLevelHost, Object) 

事件類型

適用於