Table of Contents

Class DelayedAttribute

Namespace
DevExpress.Xpo
Assembly
DevExpress.Xpo.v24.1.dll

Indicates that the property’s value should not be loaded when a persistent object is being loaded. The property will be loaded the first time it is accessed.

[AttributeUsage(AttributeTargets.Property, Inherited = true)]
public sealed class DelayedAttribute : Attribute
Inheritance
DelayedAttribute
Inherited Members

Constructors

DelayedAttribute()

Initializes a new instance of the DelayedAttribute class.

public DelayedAttribute()

DelayedAttribute(bool)

Initializes a new instance of the DelayedAttribute class with a setting indicating whether all or only modified property values are sent for update to a data store.

public DelayedAttribute(bool updateModifiedOnly)

Parameters

updateModifiedOnly bool

true if the delayed property’s value is sent to a data store for update only after it has been modified; otherwise, false. This value is assigned to the DelayedAttribute.UpdateModifiedOnly property.

DelayedAttribute(string)

Initializes a new instance of the DelayedAttribute class with the name of the field which stores the delayed property’s value.

public DelayedAttribute(string fieldName)

Parameters

fieldName string

A string value which specifies the name of the field which stores the value of the delayed property. This value is assigned to the DelayedAttribute.FieldName property.

DelayedAttribute(string, bool)

Initializes a new instance of the DelayedAttribute class with the specified settings.

public DelayedAttribute(string fieldName, bool updateModifiedOnly)

Parameters

fieldName string

A string value which specifies the name of the field which stores the value of the delayed property. This value is assigned to the DelayedAttribute.FieldName property.

updateModifiedOnly bool

true if the delayed property’s value is sent to a data store for update only after it has been modified; otherwise, false. This value is assigned to the DelayedAttribute.UpdateModifiedOnly property.

DelayedAttribute(string, string)

Initializes a new instance of the DelayedAttribute class with the specified settings.

public DelayedAttribute(string fieldName, string groupName)

Parameters

fieldName string

A string value which specifies the name of the field which stores the value of the delayed property. This value is assigned to the DelayedAttribute.FieldName property.

groupName string

A string value that specifies the group’s name. This value is assigned to the DelayedAttribute.GroupName property.

DelayedAttribute(string, string, bool)

Initializes a new instance of the DelayedAttribute class with the specified settings.

public DelayedAttribute(string fieldName, string groupName, bool updateModifiedOnly)

Parameters

fieldName string

A string value which specifies the name of the field which stores the value of the delayed property. This value is assigned to the DelayedAttribute.FieldName property.

groupName string

A string value that specifies the group’s name. This value is assigned to the DelayedAttribute.GroupName property.

updateModifiedOnly bool

true if the delayed property’s value is sent to a data store for update only after it has been modified; otherwise, false. This value is assigned to the DelayedAttribute.UpdateModifiedOnly property.

Properties

FieldName

Gets the name of the field which stores the value of the delayed property.

public string FieldName { get; }

Property Value

string

A string value which specifies the name of the XPDelayedProperty field which stores the value of the delayed property.

GroupName

Gets the group’s name.

public string GroupName { get; }

Property Value

string

A string value that specifies the group’s name.

UpdateModifiedOnly

Gets whether the delayed property stores all or only modified values to a data store.

public bool UpdateModifiedOnly { get; }

Property Value

bool

true if the delayed property’s value is sent to a data store for update only after it has been modified; otherwise, false.