EnumValueCollectionTTryParse(String, EnumValueT) Method

Parse the specified string to the enum value.


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

Syntax

C#

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

Parameters

name  String

The name.

value  EnumValueT

The value.

Return Value

Boolean
true if parsed, false otherwise.

Implements

IEnumValueCollectionTEnumValue, TValueTryParse(String, TValue)

Reference

EnumValueCollectionT Class TryParse Overload TwinCAT.TypeSystem Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026