点击或拖拽改变大小

ICommunicationLock 接口

用于通信的锁的接口对象,定义了进入锁和离开锁的方法接口信息
An interface object for a lock used for communication that defines interface information for the methods used to enter and exit the lock

命名空间:  HslCommunication.Core
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public interface ICommunicationLock : IDisposable

ICommunicationLock 类型公开以下成员。

方法
  名称说明
公共方法Dispose (继承自 IDisposable。)
公共方法EnterLock
进入锁操作,指定超时时间,单位毫秒,并返回是否成功获得锁的标记。
Enters the lock operation, specifies the timeout period in milliseconds, and returns a flag as to whether the lock was successfully obtained.
公共方法LeaveLock
离开锁操作
Lockaway operation
Top
参见