EnumValueCollectionTAddValue(String, T, String, ITypeAttributeCollection) Method

Adds the value.


Namespace: TwinCAT.TypeSystem
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470

Syntax

C#

public EnumValueCollection<T> AddValue(
    string name,
    T value,
    string? comment,
    ITypeAttributeCollection? attributes
)

Parameters

name  String

The name.

value  T

The value.

comment  String

The comment.

attributes  ITypeAttributeCollection

The attributes.

Return Value

EnumValueCollection T
EnumValueCollection<T>.

Reference

EnumValueCollectionT Class AddValue Overload TwinCAT.TypeSystem Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026