Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. MyJob job = new MyJob (JobName, webApp);
  2. // Set my custom property!
  3. job.Properties.Add("test", "test value");
  4. SPHourlySchedule schedule = new SPHourlySchedule();
  5. schedule.BeginMinute = 0;
  6. schedule.EndMinute = 59;
  7. job.Schedule = schedule;
  8. job.Update();
  9.  
  10. public override void Execute(Guid targetInstanceId)
  11. {
  12. try
  13. {
  14. // read my coustom property
  15. var test = this.Properties["test"].ToString();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement