2013-02-15 19 views

回答

2

有一些事件可以掛鉤進去。在你的情況下,你可能會使用Document_AfterPublish()事件。

static void Document_AfterPublish(Document sender, 
umbraco.cms.businesslogic.PublishEventArgs e) 
      { 
       // your code 
      } 

    // hook into the event 
    Document.AfterPublish += 
         new Document.PublishEventHandler(Document_AfterPublish); 

也期待在thisthis鏈接可能是有益的。