EnumValueTParse Method

Parse Enum Type string


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

Syntax

C#

public static EnumValue<T> Parse(
    IEnumType<T> type,
    string str
)

Parameters

type  IEnumTypeT

The type.

str  String

The string.

Return Value

EnumValue T
EnumValue<T>.

Exceptions

Exception

Condition

FormatException

Reference

EnumValueT Class TwinCAT.TypeSystem Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026