Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CalculatedPersistentAliasAttribute(String, String) Constructor

Initializes a new instance of the CalculatedPersistentAliasAttribute class.

Namespace: DevExpress.ExpressApp.Xpo

Assembly: DevExpress.ExpressApp.Xpo.v24.2.dll

NuGet Package: DevExpress.ExpressApp.Xpo

#Declaration

public CalculatedPersistentAliasAttribute(
    string propertyName,
    string calculatedAliasPropertyName
)

#Parameters

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.

#Remarks

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

See Also