点击或拖拽改变大小

MqttHelperGetSyncServicesApiInformationFromObject 方法 (String, Object, HslMqttPermissionAttribute)

根据当前的对象定义的方法信息,获取到所有支持ApiTopic的方法列表信息,包含API名称,示例参数数据,描述信息。
According to the method information defined by the current object, the list information of all methods that support ApiTopic is obtained, including the API name, sample parameter data, and description information.

命名空间:  HslCommunication.MQTT
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public static List<MqttRpcApiInfo> GetSyncServicesApiInformationFromObject(
	string api,
	Object obj,
	HslMqttPermissionAttribute permissionAttribute = null
)

参数

api
类型:SystemString
指定的ApiTopic的前缀,可以理解为控制器,如果为空,就不携带控制器。
obj
类型:SystemObject
实际的等待解析的对象
permissionAttribute (Optional)
类型:HslCommunication.ReflectionHslMqttPermissionAttribute
默认的权限特性

返回值

类型:ListMqttRpcApiInfo
返回所有API说明的列表,类型为MqttRpcApiInfo
参见