Click or drag to resize

MemoryServiceGetAddress Method

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

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

Parameters

service
Type: Demo3D.PLC.Comms.MemoryIMemoryService
The memory service.
socket
Type: Demo3D.NetProtocolSocket
The protocol socket.
address
Type: SystemString
Address to access.
access
Type: Demo3D.PLC.CommsAccessRights
Requested access.
userState (Optional)
Type: SystemObject
Private user data.

Return Value

Type: 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