Skip to main content
A newer version of this page is available. .

Resource Interface

Defines a common attribute which can be assigned to appointments to group them.

Namespace: DevExpress.XtraScheduler

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

NuGet Packages: DevExpress.Scheduler.Core, DevExpress.WindowsDesktop.Scheduler.Core

Declaration

public interface Resource :
    IPersistentObject,
    IBatchUpdateable,
    IDisposable,
    IIdProvider

Remarks

The Resource represents a common attribute which can be assigned to appointments to group them 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 PersistentObject class, the Resource class provides an interface enabling a resource instance’s caption (Resource.Caption), color (Resource.Color), unique identifier (PersistentObject.Id) and visibility (Resource.Visible) to be specified.

Use the SchedulerStorageBase.CreateResource method to create a resource. Add it to the persistent storage using the ResourceStorageBase.Add method. Resources are maintained within the ResourceStorageBase.Items collection of a ResourceStorage object which is referenced by the SchedulerStorage.Resources property of the SchedulerStorage component.

An instance of the Resource can be accessed via the ResourceStorageBase.Item property of the ResourceStorage object.

See Also