Specifies the lock type for a given timer job definition.
There are 3 Locks available..
- SPJobLockType.None -- if you set it none, the instance will run in all the available servers in the Farm (e.g. Application Server Timer Job)
- SPJobLockType.ContentDatabase – this will cause 3 instances to be running in each of the Web-Frontends.in short, it’s almost the same as the Job one, meaning that it only runs one server.
- SPJobLockType.Job – this will cause only one instance of the job to run on any of the front-end servers. (Note: it is possible to see multiple instances listed in the Job Status .. but if you look at the time it was last run.. only one would have run lately.







Before we answer this Question, Lets see what are different view scopes present in a list.
View Scope
SPViewScope is a SharePoint enumeration, which has values Default, FilesOnly, Recursive, RecursiveAll.
->Folder 1
Item 1
Item 2
->Item 3
Consider a SHAREPOINT list which has items in the above hierarchy.i.e. 'Folder 1' and 'Item 3' directly at the top level and 'Item 1 ,Item 2' inside the 'Folder 1 '.
Now lets set different scopes and check out what items are seen in the view.
Note : The scope can be set to SPview.Scope or to an SPQuery.Scope
Default
- Folder1
- Item3
FilesOnly