Skip to main content

Appointment.ResourceId Property

Gets or sets the unique identifier of the resource associated with the current appointment, or the ID of the first resource if resource sharing is enabled.

Namespace: DevExpress.XtraScheduler

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

#Declaration

public object ResourceId { get; set; }

#Property Value

Type Description
Object

A Object value that specifies the resource's unique identifier.

#Remarks

The ResourceId property specifies the unique identifier of the appointment's associated resource.

Resources are used to group schedules and facilitate the task of managing user time. An appointment can be associated with a resource, or it can be standalone. To associate an appointment with a resource, the appointment's ResourceId property should be set to a value specified by the required resource's Resource.Id property. For standalone appointments the ResourceId property is set to the DevExpress.XtraScheduler.Resource.Empty.Id property's value.

NOTE

If resource sharing is enabled (the AppointmentStorage.ResourceSharing property is set to true), the ResourceId property returns the ID of the first resource contained in the Appointment.ResourceIds collection.

NOTE

If an appointment does not belong to any particular resource (the ResourceId 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. The visibility of appointments without assigned resources is controlled by the OptionsView.ShowOnlyResourceAppointments property.

See Also