SchedulerControl.ReplaceService<T>(T) Method

Performs a service substitution.

Namespace: DevExpress.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v20.1.dll

Declaration

public T ReplaceService<T>(
    T newService
)
    where T : class
Public Function ReplaceService(Of T As Class)(
    newService As T
) As T

Parameters

Name Type Description
newService T

A new service to replace.

Type Parameters

Name
T

Returns

Type Description
T

Previously registered service of the specified type, or null (Nothing in Visual Basic) if the service does not exist.

Remarks

IMPORTANT

You are viewing documentation for the legacy WPF Scheduler control. If you're starting a new project, we strongly recommend that you use a new control declared in the DevExpress.Xpf.Scheduling namespace. If you decide to upgrade an existing project in order to switch to the updated scheduler control, see the Migration Guidelines document.

Use the ReplaceService<T> method instead of the SchedulerControl.GetService -> SchedulerControl.RemoveService -> SchedulerControl.AddService method sequence.

See Also