Share via


SPJobDefinition.LockType property

Gets the lock type for the job definition.

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

Syntax

public SPJobLockType LockType { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPJobLockType
An SPJobLockType value.

Remarks

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

See also

Reference

SPJobDefinition class

SPJobDefinition members

Microsoft.SharePoint.Administration namespace