public override void Execute(Guid targetInstanceId) { SPWebApplication webApp = this.Parent as SPWebApplication; SPList taskList = webApp.Sites[0].RootWeb.Lists["Tasks"]; SPListItem newTask = taskList.Items.Add(); newTask["Title"] = "New Task" + DateTime.Now.ToString(); newTask.Update(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)