点击或拖拽改变大小

CommunicationLockSimple 类

用于通信的一个简单的基元混合锁
继承层次
SystemObject
  HslCommunication.CoreCommunicationLockNone
    HslCommunication.CoreCommunicationLockSimple

命名空间:  HslCommunication.Core
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public class CommunicationLockSimple : CommunicationLockNone

CommunicationLockSimple 类型公开以下成员。

构造函数
  名称说明
公共方法CommunicationLockSimple
初始化 CommunicationLockSimple 类的一个新实例
Top
属性
  名称说明
公共属性IsWaitting
获取当前锁是否在等待当中
Gets whether the current lock is waiting
Top
方法
  名称说明
公共方法Dispose (继承自 CommunicationLockNone。)
受保护的方法Dispose(Boolean)
释放被 CommunicationLockSimple 使用的非托管资源,并且是否托管资源(可选)
(重写 CommunicationLockNoneDispose(Boolean).)
公共方法EnterLock
进入锁操作,指定超时时间,单位毫秒,并返回是否成功获得锁的标记。
Enters the lock operation, specifies the timeout period in milliseconds, and returns a flag as to whether the lock was successfully obtained.
(重写 CommunicationLockNoneEnterLock(Int32).)
公共方法Equals (继承自 Object。)
受保护的方法Finalize (继承自 Object。)
公共方法GetHashCode (继承自 Object。)
公共方法GetType (继承自 Object。)
公共方法LeaveLock
离开锁操作
Lockaway operation
(重写 CommunicationLockNoneLeaveLock.)
受保护的方法MemberwiseClone (继承自 Object。)
公共方法ToString (重写 ObjectToString.)
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见