Skip to main content

IMemberInfo.AddAttribute(Attribute, Boolean) Method

Dynamically associates the specified attribute with the current member.

Namespace: DevExpress.ExpressApp.DC

Assembly: DevExpress.ExpressApp.v25.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

void AddAttribute(
    Attribute attribute,
    bool skipRefresh
)

Parameters

Name Type Description
attribute Attribute

Attribute object that specifies the attribute to be applied.

skipRefresh Boolean

true, if the Types Info Subsystem should not reload information from XPDictionary immediately; otherwise, false. If you set skipRefresh to true, then you should call the XafMemberInfo.Refresh method for each updated member.

Remarks

An example of using this method is provided in the Use Metadata to Customize Business Classes Dynamically topic.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AddAttribute(Attribute, Boolean) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also