ModbusObjectGetValueTValue 方法
获取单个值
命名空间: TouchSocket.Modbus程序集: TouchSocketPro.Modbus (在 TouchSocketPro.Modbus.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
public TValue GetValue<TValue>(
string propertyName = null
)
where TValue : struct, new()
Public Function GetValue(Of TValue As {Structure, New}) (
Optional propertyName As String = Nothing
) As TValue
member GetValue :
?propertyName : string
(* Defaults:
let _propertyName = defaultArg propertyName null
*)
-> 'TValue when 'TValue : struct, new()
- propertyName String (Optional)
- 调用此方法的属性名称,默认为调用者的名称
- TValue
- 值的类型,必须是非托管类型
TValue返回获取的值