Resource Class
A resources persisted in a data store.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v14.2.Core.dll
#Declaration
#Remarks
The Resource is a common attribute which can be used to group appointments by associated resources and facilitate the task of managing the time of resources and people groups under a single view. An appointment can be associated with a resource by setting the appointment's Appointment.ResourceId property to the required resource's unique identifier.
In addition to the members inherited from the DevExpress.XtraScheduler.PersistentObject class, the Resource class provides an interface enabling a resource instance's caption (Resource.Caption), color (Resource.Color), unique identifier (Resource.Id) and visibility (Resource.Visible) to be specified.
Use the Resource class to create and manage a persistent resource. Resources are maintained within the ResourceStorage.Items collection of a ResourceStorage object which is referenced by the SchedulerStorage.ResourceStorage property.
An instance of the Resource can be accessed via the ResourceCollection.Item property of the resources collection or the Item property of the ResourceStorage object directly.