EnumValue.T..Parse Method

Parse Enum Type string

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

Syntax

C#

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

Parameters

type

Type: TwinCAT.TypeSystem.IEnumType.T.
The type.

str

Type: System.String
The string.

Return Value

Type: EnumValue.T.
EnumValue<T>.

Exceptions

Exception

Condition

FormatException

Reference

EnumValue.T. Class

TwinCAT.TypeSystem Namespace