I am migrating my code of Event Code system from Tridion 2009 to Tridion 2011(SDL TOM.NET), I am facing some problem while publishing page via code. My existing code which is written in Tridion 2009 is as below.
PublicationTarget targets = null; TDSEClass class2 = new TDSEClass(); targets = class2.GetPublicationTarget(pubTargUri); page2.Publish(targets, false, true, true, DateTime.Now.AddMinutes(-82.0), DateTime.MinValue, DateTime.Now, true, EnumPublishPriority.Normal, false, 0);
But I do not have any idea to do same thing in 2011. I had also tried to get help from the document but did not success.