SPJobDefinition.LockType 属性
作业定义获取的锁的类型。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public ReadOnly Property LockType As SPJobLockType
Get
用法
Dim instance As SPJobDefinition
Dim value As SPJobLockType
value = instance.LockType
public SPJobLockType LockType { get; }
属性值
类型:Microsoft.SharePoint.Administration.SPJobLockType
SPJobLockType 值中。
备注
使用LockType属性以防止同时在多台计算机上运行并处理相同数据的同一个作业。