Share via


ObservableCollectionListSource<T>.IListSource.GetList Method

Definition

Returns an IBindingList implementation that stays in sync with this ObservableCollection<T>. The returned list is cached on this object such that the same list is returned each time this method is called.

System.Collections.IList IListSource.GetList ();
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("BindingList raises ListChanged events with PropertyDescriptors. PropertyDescriptors require unreferenced code.")]
[System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ReflectionAnalysis", "IL2046", Justification="This method is an interface implementation, and the interface method isn't annotated with RequiresUnreferencedCode. The entire type is marked with RequiresUnreferencedCode.")]
System.Collections.IList IListSource.GetList ();
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("BindingList raises ListChanged events with PropertyDescriptors. PropertyDescriptors require unreferenced code.")]
[System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ReflectionAnalysis", "IL2046", Justification="This method is an interface implementation, and the interface method isn't annotated with RequiresUnreferencedCode. The entire type is marked with RequiresUnreferencedCode.")]
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Requires calling MakeGenericType on the property descriptor's type")]
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
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("BindingList raises ListChanged events with PropertyDescriptors. PropertyDescriptors require unreferenced code.")>]
[<System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ReflectionAnalysis", "IL2046", Justification="This method is an interface implementation, and the interface method isn't annotated with RequiresUnreferencedCode. The entire type is marked with RequiresUnreferencedCode.")>]
abstract member System.ComponentModel.IListSource.GetList : unit -> System.Collections.IList
override this.System.ComponentModel.IListSource.GetList : unit -> System.Collections.IList
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("BindingList raises ListChanged events with PropertyDescriptors. PropertyDescriptors require unreferenced code.")>]
[<System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ReflectionAnalysis", "IL2046", Justification="This method is an interface implementation, and the interface method isn't annotated with RequiresUnreferencedCode. The entire type is marked with RequiresUnreferencedCode.")>]
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Requires calling MakeGenericType on the property descriptor's type")>]
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

An IBindingList in sync with the ObservableCollection.

Implements

Attributes

Applies to