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) 

事件类型

适用于

另请参阅