次の方法で共有


SPJobDefinition.LockType property

Gets the lock type for the job definition.

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

Syntax

'Declaration
Public ReadOnly Property LockType As SPJobLockType
    Get
'Usage
Dim instance As SPJobDefinition
Dim value As SPJobLockType

value = instance.LockType
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