This documentation is archived and is not being maintained.

SPJobDefinition.LockType Property

Windows SharePoint Services 3

Gets the lock type for the job definition.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public SPJobLockType LockType { get; }

Use the LockType property to prevent the same job from simultaneously running on multiple machines and processing the same data.