ServerSymbolFactory.CreateSymbol Method (String, IDataType, ISymbol, Int32)

Creates the symbol.

Namespace:  TwinCAT.Ads.Server.TypeSystem
Assembly:  TwinCAT.Ads.SymbolicServer (in TwinCAT.Ads.SymbolicServer.dll) Version: 6.0.328+39e3229

Syntax

C#

public Symbol CreateSymbol(
    string instanceName,
    IDataType dataType,
    ISymbol parent,
    int fieldOffset
)

Parameters

instanceName

Type: System.String
Name of the instance.

dataType

Type: TwinCAT.TypeSystem.IDataType
Type of the data.

parent

Type: TwinCAT.TypeSystem.ISymbol
The parent.

fieldOffset

Type: System.Int32
The field offset.

Return Value

Type: Symbol
Symbol.

Exceptions

Exception

Condition

ArgumentNullException

instanceName

ArgumentNullException

dataType

NotSupportedException

Reference

ServerSymbolFactory Class

CreateSymbol Overload

TwinCAT.Ads.Server.TypeSystem Namespace