Skip to main content

AppointmentDataStorage.ResourceSharing Property

Gets or sets a value indicating whether an appointment could be shared between multiple resources.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.1.dll

NuGet Package: DevExpress.Win.Scheduler

Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
public bool ResourceSharing { get; set; }

Property Value

Type Default Description
Boolean false

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ResourceSharing 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.

See Also