Skip to main content

Appointment.ResourceIds Property

Gets a collection of identifiers of all resources associated with the current appointment.

Namespace: DevExpress.XtraScheduler

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

NuGet Package: DevExpress.Scheduler.Core

Declaration

AppointmentResourceIdCollection ResourceIds { get; }

Property Value

Type Description
AppointmentResourceIdCollection

An AppointmentResourceIdCollection object which contains resource identifiers.

Remarks

The ResourceIds property specifies the collection of identifiers of all associated resources.

Resources are used to group schedules. An appointment can be associated with a resource, or it can be standalone. To associate an appointment with a resource, add resource identifier to the AppointmentResourceIdCollection collection accessed by the ResourceIds property. Resource identifier is a value of the IPersistentObject.Id property.

Note

If an appointment doesn’t belong to any particular resource (the ResourceIds property is set to the DevExpress.XtraScheduler.Resource.Empty.Id), it is considered assigned to all resources. Hence, this appointment is shown for all resources. Appointments without assigned resources are hidden if the SchedulerOptionsViewBase.ShowOnlyResourceAppointments property is set to true.

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