ReadOnlyEnumValueCollection<T>.TryParse(String, EnumValue<T>) Method

Tries to parse the string value of the Enum.


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

Syntax

C#

public bool TryParse(
string strValue,
out EnumValue<T>? value
)

Parameters

strValue  String

The Value in string represention.

value  EnumValue<T>

The value.

Return Value

Boolean
true if the enum value can be parsed, false otherwise.

Implements

IEnumValueCollection<TEnumValue, TValue>.TryParse(String, TValue)

See Also

Reference

ReadOnlyEnumValueCollection<T> Class TryParse Overload TwinCAT.TypeSystem Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026