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

Tries to parse the string value of the Enum.

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

Syntax

C#

bool TryParse(
    string strValue,
    out TEnumValue? value
)

Parameters

strValue

Type: System.String
The Value in string representation.

value

Type: TEnumValue.
The value.

Return Value

Type: Boolean
true if the string could be parsed successfully, false otherwise.

Reference

IEnumValueCollection.TEnumValue, TValue. Interface

TryParse Overload

TwinCAT.TypeSystem Namespace