共用方式為


IResourceManager.ResourceNotFound 事件

定義

發生于嘗試取得資源失敗時,因為找不到指定的資源。

// Register
event_token ResourceNotFound(TypedEventHandler<ResourceManager, ResourceNotFoundEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
IResourceManager::ResourceNotFound_revoker ResourceNotFound(auto_revoke_t, TypedEventHandler<ResourceManager, ResourceNotFoundEventArgs const&> const& handler) const;
event TypedEventHandler<ResourceManager,ResourceNotFoundEventArgs> ResourceNotFound;
function onResourceNotFound(eventArgs) { /* Your code */ }
iResourceManager.addEventListener("resourcenotfound", onResourceNotFound);
iResourceManager.removeEventListener("resourcenotfound", onResourceNotFound);
- or -
iResourceManager.onresourcenotfound = onResourceNotFound;
Event ResourceNotFound As TypedEventHandler(Of ResourceManager, ResourceNotFoundEventArgs) 

事件類型

適用於

另請參閱