XPTypeInfo.FindAttributeInfo(String) Method

Searches for an attribute with the specified name.

Namespace: DevExpress.Xpo.Metadata

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

public Attribute FindAttributeInfo(
    string attributeName
)
Public Function FindAttributeInfo(
    attributeName As String
) As Attribute
public Attribute FindAttributeInfo(
    string attributeName
)
Public Function FindAttributeInfo(
    attributeName As String
) As Attribute

Parameters

Name Type Description
attributeName String

A String value that specifies the name of the attribute to search for.

Parameters

Name Type Description
attributeName String

A String value that specifies the name of the attribute to search for.

Returns

Type Description
Attribute

A Attribute descendant with the specified name. null (Nothing in Visual Basic) if an attribute with the specified name isn't found.

Returns

Type Description
Attribute

A Attribute descendant with the specified name. null (Nothing in Visual Basic) if an attribute with the specified name isn't found.

Remarks

Use the XPTypeInfo.HasAttribute method to determine whether the XPTypeInfo.Attributes collection contains an attribute with the specified name.

See Also