Skip to main content
.NET 8.0+

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

NotClonedInfoAttribute Class

Applied to a business class. Specifies the business class’ string property, which can hold the property values that were not cloned.

Namespace: DevExpress.Persistent.Base

Assembly: DevExpress.Persistent.Base.v24.2.dll

#Declaration

[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)]
public sealed class NotClonedInfoAttribute :
    Attribute

#Remarks

This attribute is considered when cloning objects via the Clone Object Module. The NotClonedInfo attribute’s constructor takes a single string parameter. The parameter specifies the string property which can hold the property values that were not cloned.

When the actual type of the object being cloned differs from the target type, there may be properties which do not exist in the target type. You can apply the NotClonedInfo attribute to the target business class and specify a string property. In this instance, the values of the non-existent properties will be converted to the string representation, and stored to the specified property. Property values are separated by a semicolon.

#Inheritance

Object
Attribute
NotClonedInfoAttribute
See Also