Skip to main content
.NET Framework 4.5.2+

CalculatedPersistentAliasAttribute(String, String) Constructor

Initializes a new instance of the CalculatedPersistentAliasAttribute class.

Namespace: DevExpress.ExpressApp.Xpo

Assembly: DevExpress.ExpressApp.Xpo.v22.1.dll


public CalculatedPersistentAliasAttribute(
    string propertyName,
    string calculatedAliasPropertyName


Name Type Description
propertyName String

A string holding the property name for which you would like to set up a persistent alias. This parameter’s value is assigned to the CalculatedPersistentAliasAttribute.PropertyName property.

calculatedAliasPropertyName String

A string holding the name of a public static property which returns the alias’ expression. This parameter’s value is assigned to the CalculatedPersistentAliasAttribute.CalculatedAliasPropertyName property.


Note that a property which returns the persistent alias’ expression must be declared as public and static (Public and Shared in VB).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CalculatedPersistentAliasAttribute(String, String) constructor.


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