ReadOnlyTypeAttributeCollection.TryGetAttribute Method

Tries to get the specified ITypeAttribute

Namespace:  TwinCAT.TypeSystem
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

public bool TryGetAttribute(
    string name,
    out ITypeAttribute attribute
)

VB

Public Function TryGetAttribute ( 
    name As String,
    <OutAttribute> ByRef attribute As ITypeAttribute
) As Boolean

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

ReadOnlyTypeAttributeCollection Class

TwinCAT.TypeSystem Namespace