IResourceManager.ResourceNotFound 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于嘗試取得資源失敗時,因為找不到指定的資源。
// 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)