BeckhoffAdsNetReadStructT 方法 (String) |
读取结构体的信息,传入结构体的类型,以及结构体的起始地址
Read the information of the structure, the type of the incoming structure, and the start address of the structure
命名空间:
HslCommunication.Profinet.Beckhoff
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult<T> ReadStruct<T>(
string address
)
where T : struct, new()
Public Function ReadStruct(Of T As {Structure, New}) (
address As String
) As OperateResult(Of T)
public:
generic<typename T>
where T : value class, gcnew()
OperateResult<T>^ ReadStruct(
String^ address
)
member ReadStruct :
address : string -> OperateResult<'T> when 'T : struct, new()
参数
- address
- 类型:SystemString
结构体的地址信息
类型参数
- T
- 结构体类型
返回值
类型:
OperateResultT是否读取成功
参见