Microsoft
70-573 · Question #78
You have a timer job that has the following constructors. (Line numbers are included for reference only.) 01 public TimerJob1 (): base() {} 02 public TimerJobl(SPWebApplication wApp) You need to…
The correct answer is C. base( " TimerJobl" , wApp, null, SPJobLockType.Job){}. See the full explanation below for the reasoning.
Question
You have a timer job that has the following constructors. (Line numbers are included for reference only.) 01 public TimerJob1 (): base() {} 02 public TimerJobl(SPWebApplication wApp) You need to ensure that the timer job runs on only the first available timer server. Which base class constructor should you use in line 02?
Options
- Abase(null, wApp, null/ SPJobLockType.ContentDatabase){}
- Bbase(null, wApp, null, SPJobLockType.None){}
- Cbase( " TimerJobl" , wApp, null, SPJobLockType.Job){}
- Dbase("TimerJobl" , wApp, null, SPJobLockType.None){}
How the community answered
(28 responses)- A11% (3)
- B4% (1)
- C79% (22)
- D7% (2)
Community Discussion
No community discussion yet for this question.