Skip to main content
.NET 6.0+

IMemberInfo.AddAttribute(Attribute, Boolean) Method

Dynamically associates the specified attribute with the current member.

Namespace: DevExpress.ExpressApp.DC

Assembly: DevExpress.ExpressApp.v23.2.dll

NuGet Package: DevExpress.ExpressApp


void AddAttribute(
    Attribute attribute,
    bool skipRefresh


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.


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

See Also