MediaProtectionManager.ComponentLoadFailed 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在加载二进制数据失败时触发。
public:
virtual event ComponentLoadFailedEventHandler ^ ComponentLoadFailed;
// Register
event_token ComponentLoadFailed(ComponentLoadFailedEventHandler const& handler) const;
// Revoke with event_token
void ComponentLoadFailed(event_token const* cookie) const;
// Revoke with event_revoker
MediaProtectionManager::ComponentLoadFailed_revoker ComponentLoadFailed(auto_revoke_t, ComponentLoadFailedEventHandler const& handler) const;
public event ComponentLoadFailedEventHandler ComponentLoadFailed;
function onComponentLoadFailed(eventArgs) { /* Your code */ }
mediaProtectionManager.addEventListener("componentloadfailed", onComponentLoadFailed);
mediaProtectionManager.removeEventListener("componentloadfailed", onComponentLoadFailed);
- or -
mediaProtectionManager.oncomponentloadfailed = onComponentLoadFailed;
Public Custom Event ComponentLoadFailed As ComponentLoadFailedEventHandler