点击或拖拽改变大小

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.1.2.0 (12.1.2.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
When implemented in a derived class, gets a unique identifier for this Attribute.
(继承自 Attribute。)
Top
方法
  名称说明
公共方法Equals
Returns a value that indicates whether this instance is equal to a specified object.
(继承自 Attribute。)
受保护的方法Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(继承自 Object。)
公共方法GetHashCode
Returns the hash code for this instance.
(继承自 Attribute。)
公共方法GetType
Gets the Type of the current instance.
(继承自 Object。)
公共方法IsDefaultAttribute
When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(继承自 Attribute。)
公共方法Match
When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(继承自 Attribute。)
受保护的方法MemberwiseClone
Creates a shallow copy of the current Object.
(继承自 Object。)
公共方法ToString
Returns a string that represents the current object.
(继承自 Object。)
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见