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

Tries to parse the string value of the Enum.

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

Syntax

C#

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

Parameters

strValue

Type: System.String
The Value in string represention.

value

Type: TwinCAT.TypeSystem.EnumValue.T..
The value.

Return Value

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

Implements

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

Reference

ReadOnlyEnumValueCollection.T. Class

TryParse Overload

TwinCAT.TypeSystem Namespace