Click or drag to resize

MemoryServiceGetAddress(IMemoryService, ProtocolSocket, String, AccessRights, Object) Method

Get access to an address in the memory of a peer.

Namespace: Demo3D.PLC.Comms.Memory
Assembly: PLC (in PLC.dll) Version: 19.00.00
Syntax
C#
public static MemoryAccess GetAddress(
	this IMemoryService service,
	ProtocolSocket socket,
	string address,
	AccessRights access,
	Object? userState = null
)

Parameters

service  IMemoryService
The memory service.
socket  ProtocolSocket
The protocol socket.
address  String
Address to access.
access  AccessRights
Requested access.
userState  Object  (Optional)
Private user data.

Return Value

MemoryAccess
An object for accessing the memory in the peer.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IMemoryService. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also