IBaseInfo.AddAttribute(Attribute) Method
In This Article
Dynamically associates an attribute to the current type at run time.
Namespace: DevExpress.ExpressApp.DC
Assembly: DevExpress.ExpressApp.v25.1.dll
NuGet Package: DevExpress.ExpressApp
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
attribute | Attribute | A descendant of the System. |
#Remarks
C#
ITypeInfo typeInfo1 = typesInfo.FindTypeInfo(typeof(PersistentObject1));
typeInfo1.AddAttribute(new DevExpress.Persistent.Base.DefaultClassOptionsAttribute());
// ...
typesInfo.RefreshInfo(typeof(PersistentObject1));
See Also