EnumValueTTryParse Method

Parse EnumType string


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

Syntax

C#

public static bool TryParse(
    IEnumType<T> type,
    string str,
    out EnumValue<T>? value
)

Parameters

type  IEnumTypeT

The type.

str  String

The string.

value  EnumValueT

The value.

Return Value

Boolean
true if the EnumValueT could be parsed, false otherwise.

Reference

EnumValueT Class TwinCAT.TypeSystem Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026