InformationModel.MakeVariableType<T>(browseName, dataTypeId, arrayDimensions)

Create a project variable type derived from the type indicated by the supertype that contains the data type indicated by the
dataTypeId
argument. Create a specific array with the optional
arrayDimensions
argument.
static T MakeVariableType<T>(QualifiedName
browseName
, NodeId
dataTypeId
, uint[]
arrayDimensions
);

Arguments

T
IUAVariableType
C# class, corresponding to the C# object class to return.
browseName
(QualifiedName)
The
BrowseName
of the new variable type.
dataTypeId
(NodeId)
The Data type contained in the new variable.
TIP: A node inside the
DataTypes
class represents the Data type. For example,
OpcUa.DataTypes.Boolean
.
arrayDimensions
(uint[ ])
Optional. The size of the Array.

Returns

IUAVariableType
A C# object matching the project variable type created.

Example

var myCustomTagType = InformationModel.MakeVariableType<FTOptix.CoDeSys.TagType>("CustomCoDeSysTagType", FTOptix.CoDeSys.VariableTypes.Tag, OpcUa.DataTypes.UInt16);
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.