Click or drag to resize

AddressTranslatorServiceExtensionsTranslate Method (IAddressTranslatorService, Type, IAddress)

Translate address from one form to another.

Namespace:  Demo3D.PLC.Comms
Assembly:  PLC (in PLC.dll) Version: 15.0.2.11458
Syntax
C#
public static IAddress? Translate(
	this IAddressTranslatorService addressTranslator,
	Type addressType,
	IAddress address
)

Parameters

addressTranslator
Type: Demo3D.PLC.CommsIAddressTranslatorService
The address translator.
addressType
Type: SystemType
The type of the address to return.
address
Type: Demo3D.PLC.CommsIAddress
The address to convert.

Return Value

Type: IAddress
An address of the correct form, or null.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAddressTranslatorService. 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