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); 也期待在this和this鏈接可能是有益的。 來源 2013-02-15 13:27:54