Click or drag to resize

AddressTranslatorServiceExtensionsTranslate Method (IAddressTranslatorService, Type, String)

Translate a string address to an IAddress.

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,
	string address
)

Parameters

addressTranslator
Type: Demo3D.PLC.CommsIAddressTranslatorService
The address translator.
addressType
Type: SystemType
The type of the address to return.
address
Type: SystemString
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