点击或拖拽改变大小

HslMqttPermissionAttribute 类

可以指定方法的权限内容,可以限定MQTT会话的ClientID信息或是UserName内容
继承层次
SystemObject
  SystemAttribute
    HslCommunication.ReflectionHslMqttPermissionAttribute

命名空间:  HslCommunication.Reflection
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public class HslMqttPermissionAttribute : Attribute

HslMqttPermissionAttribute 类型公开以下成员。

构造函数
  名称说明
公共方法HslMqttPermissionAttribute
初始化 HslMqttPermissionAttribute 类的一个新实例
Top
属性
  名称说明
公共属性ClientID
ClientId的限定内容
公共属性TypeId (继承自 Attribute。)
公共属性UserName
UserName的限定内容
Top
方法
  名称说明
公共方法CheckClientID
检查当前的客户端ID是否通过
公共方法CheckUserName
检查当前的用户名是否通过
公共方法Equals (继承自 Attribute。)
受保护的方法Finalize (继承自 Object。)
公共方法GetHashCode (继承自 Attribute。)
公共方法GetType (继承自 Object。)
公共方法IsDefaultAttribute (继承自 Attribute。)
公共方法Match (继承自 Attribute。)
受保护的方法MemberwiseClone (继承自 Object。)
公共方法ToString (继承自 Object。)
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见