AppointmentItem.ResourceId Property

Gets or sets the identifier of the associated resource, or the first resource identifier if an appointment has several assigned resources.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v19.1.dll


public object ResourceId { get; set; }
Public Property ResourceId As Object

Property Value

Type Description

A Object value that is the resource's unique identifier or the ResourceItemEmpty.Id value if no resources are assigned (default).


To associate an appointment with a resource, set the appointment's ResourceId property to the resource's SourceObjectContainer.Id value. For standalone appointments, the ResourceId property is set to the ResourceItemEmpty.Id value.

Use the AppointmentItem.ResourceIds property to get a collection of associated resources.


If an appointment doesn't belong to any particular resource, the scheduler shows it for all resources when the SchedulerControl.GroupType property is set to the SchedulerGroupType.Resource or SchedulerGroupType.Date value.

See Also