SchedulerControl.ReplaceService<T>(T) Method
Performs a service substitution.
Namespace: DevExpress.Xpf.Scheduler
Assembly: DevExpress.Xpf.Scheduler.v14.2.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
Use the ReplaceService<T> method instead of the SchedulerControl.GetService -> SchedulerControl.RemoveService -> SchedulerControl.AddService method sequence.
See Also