MqttHelperGetMqttSyncServicesApiFromMethod 方法 |
命名空间:
HslCommunication.MQTT
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<MqttRpcApiInfo> GetMqttSyncServicesApiFromMethod(
string api,
MethodInfo method,
Object obj,
HslMqttPermissionAttribute permissionAttribute = null
)
Public Shared Function GetMqttSyncServicesApiFromMethod (
api As String,
method As MethodInfo,
obj As Object,
Optional permissionAttribute As HslMqttPermissionAttribute = Nothing
) As OperateResult(Of MqttRpcApiInfo)
public:
static OperateResult<MqttRpcApiInfo^>^ GetMqttSyncServicesApiFromMethod(
String^ api,
MethodInfo^ method,
Object^ obj,
HslMqttPermissionAttribute^ permissionAttribute = nullptr
)
static member GetMqttSyncServicesApiFromMethod :
api : string *
method : MethodInfo *
obj : Object *
?permissionAttribute : HslMqttPermissionAttribute
(* Defaults:
let _permissionAttribute = defaultArg permissionAttribute null
*)
-> OperateResult<MqttRpcApiInfo>
参数
- api
- 类型:SystemString
Api头信息 - method
- 类型:System.ReflectionMethodInfo
方法的委托 - obj
- 类型:SystemObject
当前注册的API的源对象 - permissionAttribute (Optional)
- 类型:HslCommunication.ReflectionHslMqttPermissionAttribute
默认的权限特性
返回值
类型:
OperateResultMqttRpcApiInfo返回是否成功的结果对象
参见