HslMqttApiAttribute 类 |
命名空间: HslCommunication.Reflection
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 |
名称 | 说明 | |
---|---|---|
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。) |
名称 | 说明 | |
---|---|---|
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。) |
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |