Compartir a través de


ObservableCollectionExtensions.ToBindingList<T> Método

Definición

Devuelve una BindingList<T> implementación que permanece sincronizada con el especificado ObservableCollection<T>.

public static System.ComponentModel.BindingList<T> ToBindingList<T> (this System.Collections.ObjectModel.ObservableCollection<T> source) where T : class;
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("BindingList raises ListChanged events with PropertyDescriptors. PropertyDescriptors require unreferenced code.")]
public static System.ComponentModel.BindingList<T> ToBindingList<T> (this System.Collections.ObjectModel.ObservableCollection<T> source) where T : class;
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("BindingList raises ListChanged events with PropertyDescriptors. PropertyDescriptors require unreferenced code.")]
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Requires calling MakeGenericType on the property descriptor's type")]
public static System.ComponentModel.BindingList<T> ToBindingList<T> (this System.Collections.ObjectModel.ObservableCollection<T> source) where T : class;
static member ToBindingList : System.Collections.ObjectModel.ObservableCollection<'T (requires 'T : null)> -> System.ComponentModel.BindingList<'T (requires 'T : null)> (requires 'T : null)
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("BindingList raises ListChanged events with PropertyDescriptors. PropertyDescriptors require unreferenced code.")>]
static member ToBindingList : System.Collections.ObjectModel.ObservableCollection<'T (requires 'T : null)> -> System.ComponentModel.BindingList<'T (requires 'T : null)> (requires 'T : null)
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("BindingList raises ListChanged events with PropertyDescriptors. PropertyDescriptors require unreferenced code.")>]
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Requires calling MakeGenericType on the property descriptor's type")>]
static member ToBindingList : System.Collections.ObjectModel.ObservableCollection<'T (requires 'T : null)> -> System.ComponentModel.BindingList<'T (requires 'T : null)> (requires 'T : null)
<Extension()>
Public Function ToBindingList(Of T As Class) (source As ObservableCollection(Of T)) As BindingList(Of T)

Parámetros de tipo

T

El tipo de elemento.

Parámetros

source
ObservableCollection<T>

Colección con la que la lista de enlace permanecerá sincronizada.

Devoluciones

La lista de enlace.

Atributos

Se aplica a