Click or drag to resize

IAddressTranslatorServiceRegisterMap Method

Register an address mapping function.

Namespace:  Demo3D.PLC.Comms
Assembly:  PLC (in PLC.dll) Version: 15.0.2.11458
Syntax
C#
void RegisterMap(
	Type from,
	Type to,
	Func<IAddress, IAddress?> mappingFunction,
	bool overwrite = true,
	Object? description = null
)

Parameters

from
Type: SystemType
The type of data to map.
to
Type: SystemType
The type of data that this mapping function creates.
mappingFunction
Type: SystemFuncIAddress, IAddress
The mapping function to register.
overwrite (Optional)
Type: SystemBoolean
True to unregister any previous mapping function first.
description (Optional)
Type: SystemObject
String or property bag to describe the mapping function (or null). Appears in the property grid.
See Also