Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
Who knows why the following code gives an error
public class MyEvent : ApplicationBase { public MyEvent() { umbraco.content.AfterUpdateDocumentCache += new umbraco.content.DocumentCacheEventHandler(content_AfterUpdateDocumentCache); }
}
No overload for 'content_AfterUpdateDocumentCache' matches delegate 'umbraco.content.DocumentCacheEventHandler'
Hi Vincent,
You have wired up the evnt handler, you need to have the method as well
public class MyEvent : ApplicationBase
{
public MyEvent()
umbraco.content.AfterClearDocumentCache += new umbraco.content.DocumentCacheEventHandler(content_AfterClearDocumentCache); ;
void content_AfterClearDocumentCache(umbraco.cms.businesslogic.web.Document sender, umbraco.cms.businesslogic.DocumentCacheEventArgs e)
throw new NotImplementedException();
Hope this helps you,
Richard
Thanks Richard.
I had already tried it again and after generating the code again in VS it al worked. Tried to edit and delete the forum but that desn't seem to work....
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to catch AfterUpdateDocumentCache?
Hi,
Who knows why the following code gives an error
No overload for 'content_AfterUpdateDocumentCache' matches delegate 'umbraco.content.DocumentCacheEventHandler'
Hi Vincent,
You have wired up the evnt handler, you need to have the method as well
public class MyEvent : ApplicationBase
{
public MyEvent()
{
umbraco.content.AfterClearDocumentCache += new umbraco.content.DocumentCacheEventHandler(content_AfterClearDocumentCache); ;
}
void content_AfterClearDocumentCache(umbraco.cms.businesslogic.web.Document sender, umbraco.cms.businesslogic.DocumentCacheEventArgs e)
{
throw new NotImplementedException();
}
}
Hope this helps you,
Richard
Thanks Richard.
I had already tried it again and after generating the code again in VS it al worked. Tried to edit and delete the forum but that desn't seem to work....
is working on a reply...