共用方式為


SPJobDefinition.LockType property

取得的鎖定類型的工作定義。

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

Syntax

'宣告
Public ReadOnly Property LockType As SPJobLockType
    Get
'用途
Dim instance As SPJobDefinition
Dim value As SPJobLockType

value = instance.LockType
public SPJobLockType LockType { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPJobLockType
SPJobLockType 值。

備註

使用LockType屬性可防止從同時在多部機器上執行及處理相同的資料的相同工作。

請參閱

參照

SPJobDefinition class

SPJobDefinition members

Microsoft.SharePoint.Administration namespace