IBaseInfo.AddAttribute(Attribute) Method
Dynamically associates an attribute to the current type at run time.
Namespace: DevExpress.ExpressApp.DC
Assembly: DevExpress.ExpressApp.v25.2.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Parameters
| Name | Type | Description |
|---|---|---|
| attribute | Attribute | A descendant of the System.Attribute class that represents the attribute which will be associated with the current type at run time. |
Remarks
ITypeInfo typeInfo1 = typesInfo.FindTypeInfo(typeof(PersistentObject1));
typeInfo1.AddAttribute(new DevExpress.Persistent.Base.DefaultClassOptionsAttribute());
// ...
typesInfo.RefreshInfo(typeof(PersistentObject1));
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AddAttribute(Attribute) 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.