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