点击或拖拽改变大小

HslMqttApiAttribute 类

可以指定方法变成对外公开的API接口,如果方法不实现该特性,将不对外公开方法,无法获取相关的接口权限
You can specify the method to become an externally public API interface. If the method does not implement this feature, the method will not be publicly disclosed, and the related interface permissions cannot be obtained
继承层次
SystemObject
  SystemAttribute
    HslCommunication.ReflectionHslMqttApiAttribute

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

HslMqttApiAttribute 类型公开以下成员。

构造函数
  名称说明
公共方法HslMqttApiAttribute
实例化一个默认的对象
Instantiate a default object
公共方法HslMqttApiAttribute(String)
指定描述内容来实例化一个的对象
Specify the description content to instantiate an object
公共方法HslMqttApiAttribute(String, String)
指定接口的路由信息及描述内容来实例化一个的对象
Specify the routing information and description content of the interface to instantiate an object
Top
属性
  名称说明
公共属性ApiTopic
当前指定的ApiTopic信息,如果当前的方法接口不指定别名,那么就使用当前的方法名称
The currently specified ApiTopic information, if the current method interface does not specify an alias, then the current method name is used
公共属性Description
当前方法的注释内容
The comment content of the current method
公共属性HttpMethod
如果当前的API接口是支持Http的请求方式,当前属性有效,例如GET,POST
If the current API interface is a request method that supports Http, the current attributes are valid, such as GET, POST
公共属性PropertyUnfold
当前的属性是否需要展开API信息,默认不展开
Whether the current attribute needs to expand the API information, it is not expanded by default
公共属性TypeId (继承自 Attribute。)
Top
方法
  名称说明
公共方法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
参见