NamespaceCollection.T..TryGetType Method

Tries to get the specified type.

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

Syntax

C#

public bool TryGetType(
    string typeName,
    out T? dataType
)

Parameters

typeName

Type: System.String
Data type name

dataType

Type: T.
The found data type (out-parameter).

Return Value

Type: Boolean
true if found, false if not contained.

Exceptions

Exception

Condition

ArgumentNullException

typeName

ArgumentException

Reference

NamespaceCollection.T. Class

TwinCAT.TypeSystem.Generic Namespace