HslReflectionHelperWriteT 方法 (T, IReadWriteNet) |
命名空间:
HslCommunication.Reflection
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult Write<T>(
T data,
IReadWriteNet readWrite
)
where T : class, new()
Public Shared Function Write(Of T As {Class, New}) (
data As T,
readWrite As IReadWriteNet
) As OperateResult
public:
generic<typename T>
where T : ref class, gcnew()
static OperateResult^ Write(
T data,
IReadWriteNet^ readWrite
)
static member Write :
data : 'T *
readWrite : IReadWriteNet -> OperateResult when 'T : not struct, new()
参数
- data
- 类型:T
自定义的数据对象 - readWrite
- 类型:HslCommunication.CoreIReadWriteNet
数据读写对象
类型参数
- T
- 自定义的数据类型对象
返回值
类型:
OperateResult包含是否成功的结果对象
异常 异常 | 条件 |
---|
ArgumentNullException | |
参见