BeckhoffAdsNetWriteStructT 方法 |
将一个结构体写入到指定的地址中去,需要指定写入的起始地址
To write a structure to a specified address, you need to specify the start address of the write
命名空间:
HslCommunication.Profinet.Beckhoff
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult WriteStruct<T>(
string address,
T value
)
where T : struct, new()
Public Function WriteStruct(Of T As {Structure, New}) (
address As String,
value As T
) As OperateResult
public:
generic<typename T>
where T : value class, gcnew()
OperateResult^ WriteStruct(
String^ address,
T value
)
member WriteStruct :
address : string *
value : 'T -> OperateResult when 'T : struct, new()
参数
- address
- 类型:SystemString
起始地址 - value
- 类型:T
结构体的值
类型参数
- T
- 结构体类型
返回值
类型:
OperateResult是否写入成功
参见