Back to Devexpress

IAppointmentStorageBase.ResourceSharing Property

corelibraries-devexpress-dot-xtrascheduler-dot-iappointmentstoragebase-a6baba2b.md

latest2.7 KB
Original Source

IAppointmentStorageBase.ResourceSharing Property

Gets or sets a value indicating whether an appointment can be associated with multiple resources.

Namespace : DevExpress.XtraScheduler

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

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
bool ResourceSharing { get; set; }
vb
Property ResourceSharing As Boolean

Property Value

TypeDescription
Boolean

true , if the resource sharing is enabled; otherwise, false.

|

Remarks

If resource sharing is enabled, the Appointment.ResourceIds property contains a ResourceIdCollection collection containing identifiers of associated resources. The Appointment.ResourceId property returns the ID of the first resource in a collection of associated resources.

To store information on shared resources in the bound data source, the AppointmentMappingInfo.ResourceId mapping should specify a data field of the text type. Ensure that its length is sufficient to accommodate the string in XML format containing resource IDs.

If the ResourceSharing is set to false , the AppointmentMappingInfo.ResourceId mapping should specify a data field of the type chosen for resource ID identifier in both appointment and resource data tables. The data field will contain a single resource ID.

See Also

Appointment Mappings

Data Sources

How to: Enable Multi-Resource Appointments

IAppointmentStorageBase Interface

IAppointmentStorageBase Members

DevExpress.XtraScheduler Namespace