Back to Devexpress

NonCloneableAttribute Class

expressappframework-devexpress-dot-persistent-dot-base-592047aa.md

latest1.6 KB
Original Source

NonCloneableAttribute Class

Applied to a business class property. Specifies that the target property’s value cannot be cloned when you use the Clone Object Module to clone objects.

Namespace : DevExpress.Persistent.Base

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

NuGet Package : DevExpress.Persistent.Base

Declaration

csharp
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public sealed class NonCloneableAttribute :
    Attribute
vb
<AttributeUsage(AttributeTargets.Property Or AttributeTargets.Field)>
Public NotInheritable Class NonCloneableAttribute
    Inherits Attribute

Remarks

You can apply this attribute to a business class’ field or property, to prohibit cloning of its value via the Clone Object Module.

Inheritance

Object Attribute NonCloneableAttribute

See Also

NonCloneableAttribute Members

DevExpress.Persistent.Base Namespace