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

XPTypeInfo.HasAttribute(String) Method

Determines whether the type has the specified attribute.

Namespace: DevExpress.Xpo.Metadata

Assembly: DevExpress.Xpo.v19.1.dll

Declaration

public bool HasAttribute(string name)
Public Function HasAttribute(name As String) As Boolean
public bool HasAttribute(string name)
Public Function HasAttribute(name As String) As Boolean

Parameters

Name Type Description
name String

A String value which specifies the name of the attribute to find.

Parameters

Name Type Description
name String

A String value which specifies the name of the attribute to find.

Returns

Type Description
Boolean

true if the type has the specified attribute; otherwise, false.

Returns

Type Description
Boolean

true if the type has the specified attribute; otherwise, false.

Remarks

The HasAttribute method scans the XPTypeInfo.Attributes collection for an element whose name matches the name parameter. Note the check is case-sensitive.

See Also