ContentSite.RequestedStateChanged 事件

定义

当 对其 ContentIsland 关联的 ContentSite发出新请求时发生。

// Register
event_token RequestedStateChanged(TypedEventHandler<ContentSite, ContentSiteRequestedStateChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ContentSite::RequestedStateChanged_revoker RequestedStateChanged(auto_revoke_t, TypedEventHandler<ContentSite, ContentSiteRequestedStateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<ContentSite,ContentSiteRequestedStateChangedEventArgs> RequestedStateChanged;
function onRequestedStateChanged(eventArgs) { /* Your code */ }
contentSite.addEventListener("requestedstatechanged", onRequestedStateChanged);
contentSite.removeEventListener("requestedstatechanged", onRequestedStateChanged);
- or -
contentSite.onrequestedstatechanged = onRequestedStateChanged;
Public Custom Event RequestedStateChanged As TypedEventHandler(Of ContentSite, ContentSiteRequestedStateChangedEventArgs) 

事件类型

注解

所有者 ContentSite (DesktopSiteBridge) 可以检查本地属性 ((例如 RequestedSize) ),确定策略,然后将信息 ((例如 ActualSize) )配置为发送到 ContentIsland

适用于