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

Base implementation for exception mappers that operate on an enumerable collection.

Definition

Namespace:Telerik.WinControls.UI.Scheduler

Assembly:Telerik.WinControls.Scheduler.dll

Type Parameters:

TList

The collection interface used to access the exception items.

Syntax:

C#
public abstract class ExceptionMapper<TList> : IExceptionMapper where TList : class, IEnumerable

Inheritance: objectExceptionMapper<TList>

Derived Classes: BindingListExceptionMapperEnumerableExceptionMapperListExceptionMapper

Implements: IExceptionMapper

Constructors

C#
protected ExceptionMapper()

Fields

The collection currently assigned through SetExceptionList(object).

C#
protected TList exceptionList

Methods

Adds an exception item to the collection.

C#
public virtual void AddException(object exceptionItem)
Parameters:exceptionItemobject

The populated exception data item.

Implements: IExceptionMapper.AddException(object)

The base implementation does nothing; concrete mappers override this when items are not inserted by AddNew().

Creates an exception data item for the scheduler to populate.

C#
public abstract object AddNew()
Returns:

object

The new item, or null when the concrete mapper cannot create one.

Implements: IExceptionMapper.AddNew()

Removes an exception item from the assigned collection.

C#
public abstract void DeleteException(object exceptionItem)
Parameters:exceptionItemobject

The exception data item to remove.

Implements: IExceptionMapper.DeleteException(object)

Returns the currently assigned exception collection.

C#
public IEnumerable GetExceptions()
Returns:

IEnumerable

The collection, exposed as an enumerable.

Implements: IExceptionMapper.GetExceptions()

Assigns the collection when it implements TList.

C#
public virtual void SetExceptionList(object exceptionList)
Parameters:exceptionListobject

The source collection containing recurrence exceptions.

Implements: IExceptionMapper.SetExceptionList(object)