Back to Devexpress

ResourceDataStorage.Mappings Property

windowsforms-devexpress-dot-xtrascheduler-dot-resourcedatastorage-246e1cb0.md

latest5.3 KB
Original Source

ResourceDataStorage.Mappings Property

Gets an object that allows the persistent properties of the resources maintained by the current storage to be bound to appropriate fields in the data source.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public ResourceMappingInfo Mappings { get; }
vb
Public ReadOnly Property Mappings As ResourceMappingInfo

Property Value

TypeDescription
ResourceMappingInfo

A ResourceMappingInfo object that provides functionality for mapping the properties of the resources to appropriate data fields.

|

Remarks

Use the Mappings property to access the ResourceMappingInfo object which contains bindings between the Resource properties and appropriate fields in the data source. The data source is specified using the current resource storage’s ResourceDataStorage.DataSource property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Mappings property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-scheduler-sync-with-outlook/CS/SyncWithOutlook/Form1.cs#L192

csharp
ResourceMappingInfo resmappings = this.schedulerStorage1.Resources.Mappings;
resmappings.Id = "ResID";

winforms-scheduler-bind-to-custom-objects/CS/CustomObjectsBinding/Form1.cs#L36

csharp
private void InitResources() {
    ResourceMappingInfo mappings = this.schedulerDataStorage1.Resources.Mappings;
    mappings.Id = "ResID";

winforms-scheduler-resolve-appointment-conflicts/CS/DXApplication1/Form1.cs#L23

csharp
ResourceMappingInfo mappingsResource = this.schedulerDataStorage1.Resources.Mappings;
mappingsResource.Id = "ResID";

winforms-scheduler-serialize-deserialize-appointments/CS/DXApplication1/Form1.cs#L25

csharp
ResourceMappingInfo mappingsResource = this.schedulerDataStorage1.Resources.Mappings;
mappingsResource.Id = "ResID";

winforms-scheduler-bind-to-custom-objects/VB/CustomObjectsBinding/Form1.vb#L39

vb
Private Sub InitResources()
    Dim mappings As ResourceMappingInfo = SchedulerDataStorage1.Resources.Mappings
    mappings.Id = "ResID"

winforms-scheduler-resolve-appointment-conflicts/VB/DXApplication1/Form1.vb#L18

vb
InitHelper.InitResources(CustomResourceCollection)
Dim mappingsResource As ResourceMappingInfo = schedulerDataStorage1.Resources.Mappings
mappingsResource.Id = "ResID"

winforms-scheduler-serialize-deserialize-appointments/VB/DXApplication1/Form1.vb#L17

vb
InitHelper.InitAppointments(CustomEventList, CustomResourceCollection)
Dim mappingsResource As ResourceMappingInfo = schedulerDataStorage1.Resources.Mappings
mappingsResource.Id = "ResID"

See Also

CustomFieldMappings

Mappings

ResourceDataStorage Class

ResourceDataStorage Members

DevExpress.XtraScheduler Namespace