ITypeAttributeCollection.TryGetAttribute Method

Tries to get the specified ITypeAttribute

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

Syntax

C#

bool TryGetAttribute(
    string name,
    out ITypeAttribute?? attribute
)

Parameters

name

Type: System.String
The name of the ITypeAttribute.

attribute

Type: TwinCAT.TypeSystem.ITypeAttribute.
The attribute.

Return Value

Type: Boolean
true if found, false otherwise.

Reference

ITypeAttributeCollection Interface

TwinCAT.TypeSystem Namespace