CommunicationLockSimpleEnterLock 方法 |
进入锁操作,指定超时时间,单位毫秒,并返回是否成功获得锁的标记。
Enters the lock operation, specifies the timeout period in milliseconds, and returns a flag as to whether the lock was successfully obtained.
命名空间:
HslCommunication.Core
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public override OperateResult EnterLock(
int timeout
)
Public Overrides Function EnterLock (
timeout As Integer
) As OperateResult
public:
virtual OperateResult^ EnterLock(
int timeout
) override
abstract EnterLock :
timeout : int -> OperateResult
override EnterLock :
timeout : int -> OperateResult
参数
- timeout
- 类型:SystemInt32
超时时间
返回值
类型:
OperateResult是否成功的获得锁
实现
ICommunicationLockEnterLock(Int32)参见