The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.

XPTypeInfo.GetAttributeInfo(Type) Method

Returns the attribute of the specified type.

Namespace: DevExpress.Xpo.Metadata

Assembly: DevExpress.Xpo.v19.1.dll

Declaration

public Attribute GetAttributeInfo(Type attributeType)
Public Function GetAttributeInfo(attributeType As Type) As Attribute
public Attribute GetAttributeInfo(Type attributeType)
Public Function GetAttributeInfo(attributeType As Type) As Attribute

Parameters

Name Type Description
attributeType Type

A Type descendant which represents the type of the attribute to retrieve.

Parameters

Name Type Description
attributeType Type

A Type descendant which represents the type of the attribute to retrieve.

Returns

Type Description
Attribute

A Attribute descendant of the specified type. null (Nothing in Visual Basic) if an attribute of the specified type isn't found. In this case the RequiredAttributeMissingException is thrown.

Returns

Type Description
Attribute

A Attribute descendant of the specified type. null (Nothing in Visual Basic) if an attribute of the specified type isn't found. In this case the RequiredAttributeMissingException is thrown.

Remarks

Use the XPTypeInfo.HasAttribute method to determine whether the XPTypeInfo.Attributes collection contains an attribute of the specified type.

See Also