IAppointmentDependencyStorage.CreateAppointmentDependency(Object, Object) Method
In This Article
Creates a dependency between two appointments specified by their Ids.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.Core.dll
NuGet Package: DevExpress.Scheduler.Core
#Declaration
AppointmentDependency CreateAppointmentDependency(
object parentId,
object dependentId
)
#Parameters
Name | Type | Description |
---|---|---|
parent |
Object | An object that is the Id of the parent appointment. |
dependent |
Object | An object that is the Id of the dependent appointment. |
#Returns
Type | Description |
---|---|
Appointment |
An Appointment |
#Remarks
The CreateAppointmentDependency method uses the appointment dependency factory to create the appointment dependency and adds custom fields as required by previously specified appointment dependency mappings .
Use the ISchedulerStorageBase.SetAppointmentDependencyFactory method to specify a custom factory.
See Also