Back to Devexpress

IPersistentObject.SetValue(ISchedulerStorageBase, String, Object) Method

corelibraries-devexpress-dot-xtrascheduler-dot-ipersistentobject-dot-setvalue-x28-devexpress-dot-xtrascheduler-dot-ischedulerstoragebase-system-dot-string-system-dot-object-x29.md

latest2.9 KB
Original Source

IPersistentObject.SetValue(ISchedulerStorageBase, String, Object) Method

Performs a transaction to change the value of the field in the data record bound to the persistent object.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.Core.dll

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
void SetValue(
    ISchedulerStorageBase storage,
    string columnName,
    object val
)
vb
Sub SetValue(
    storage As ISchedulerStorageBase,
    columnName As String,
    val As Object
)

Parameters

NameTypeDescription
storageISchedulerStorageBase

A ISchedulerStorageBase instance that stores data for the object.

| | columnName | String |

A String, that is the name of the data field.

| | val | Object |

A Object, that is the new field value.

|

Remarks

If a persistent object storage is bound to a data source via its PersistentObjectStorage<T>.DataSource property, information about persistent objects (appointments or resources) is obtained from the data source’s data rows. In this case, the GetValue method obtains a value of the field in the data row that corresponds to the current persistent object. The required data field is specified by its name.

The SetValue method together with the IPersistentObject.GetValue and IPersistentObject.GetRow methods can be used to maintain an additional information about a persistent object. In this case, custom information can be stored within specific fields of the data source’s row.

See Also

IPersistentObject Interface

IPersistentObject Members

DevExpress.XtraScheduler Namespace