New to Telerik UI for WinForms? Start a free 30-day trial

Chooses an exception mapper for the collection type used by a scheduler data source.

Definition

Namespace:Telerik.WinControls.UI.Scheduler

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class ExceptionMapperFactory : IExceptionMapperFactory

Inheritance: objectExceptionMapperFactory

Implements: IExceptionMapperFactory

Constructors

C#
public ExceptionMapperFactory()

Methods

Selects a mapper from the runtime shape of an exception collection.

C#
public IExceptionMapper GetExceptionMapper(object dataSourceItem)
Parameters:dataSourceItemobject

The collection that stores the master event's recurrence exceptions.

Returns:

IExceptionMapper

A mapper selected for the runtime collection shape, or null when no supported shape or item type can be inferred.

Implements: IExceptionMapperFactory.GetExceptionMapper(object)

A mapper can be returned for a collection that does not support all required updates. The generic-enumerable path selects TypedListExceptionMapper<T>, which requires ICollection<T>; a non-generic enumerable mapper invokes public Add and Remove methods only when they exist. Use a mutable collection compatible with the selected mapper.