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.1.2.0 (12.1.2.0)
语法 public static List<MqttRpcApiInfo> GetSyncServicesApiInformationFromObject(
string api,
Object obj,
HslMqttPermissionAttribute permissionAttribute = null
)
Public Shared Function GetSyncServicesApiInformationFromObject (
api As String,
obj As Object,
Optional permissionAttribute As HslMqttPermissionAttribute = Nothing
) As List(Of MqttRpcApiInfo)
public:
static List<MqttRpcApiInfo^>^ GetSyncServicesApiInformationFromObject(
String^ api,
Object^ obj,
HslMqttPermissionAttribute^ permissionAttribute = nullptr
)
static member GetSyncServicesApiInformationFromObject :
api : string *
obj : Object *
?permissionAttribute : HslMqttPermissionAttribute
(* Defaults:
let _permissionAttribute = defaultArg permissionAttribute null
*)
-> List<MqttRpcApiInfo>
参数
- api
- 类型:SystemString
指定的ApiTopic的前缀,可以理解为控制器,如果为空,就不携带控制器。 - obj
- 类型:SystemObject
实际的等待解析的对象 - permissionAttribute (Optional)
- 类型:HslCommunication.ReflectionHslMqttPermissionAttribute
默认的权限特性
返回值
类型:
ListMqttRpcApiInfo返回所有API说明的列表,类型为
MqttRpcApiInfo参见