.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

NonCloneableAttribute Class

Applied to a business class' property. Specifies that the target property's value cannot be cloned when cloning objects via the Clone Object Module.

Namespace: DevExpress.Persistent.Base

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

Declaration

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public sealed class NonCloneableAttribute :
    Attribute
<AttributeUsage(AttributeTargets.Property Or AttributeTargets.Field)>
Public NotInheritable Class NonCloneableAttribute
    Inherits Attribute
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public sealed class NonCloneableAttribute :
    Attribute
<AttributeUsage(AttributeTargets.Property Or AttributeTargets.Field)>
Public NotInheritable Class NonCloneableAttribute
    Inherits Attribute
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public sealed class NonCloneableAttribute :
    Attribute
<AttributeUsage(AttributeTargets.Field Or AttributeTargets.Property)>
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