Share via


LocalView<TEntity>.IListSource.GetList Method

Definition

This method is called by data binding frameworks when attempting to data bind directly to a LocalView<TEntity>.

System.Collections.IList IListSource.GetList ();
abstract member System.ComponentModel.IListSource.GetList : unit -> System.Collections.IList
override this.System.ComponentModel.IListSource.GetList : unit -> System.Collections.IList
Function GetList () As IList Implements IListSource.GetList

Returns

Never returns, always throws an exception.

Implements

Exceptions

Always thrown.

Remarks

This implementation always throws an exception as LocalView<TEntity> does not maintain an ordered list with indexes. Instead call ToObservableCollection() for WPF binding, or ToBindingList() for WinForms.

Applies to